/*
 * ClarityMind landing — shared styles
 * Color tokens (edit brand colors here only):
 */
:root {
  --color-accent: #df6b00;
  --color-white: #ffffff;
  --color-bg-sky: #51adee;
  --color-bg-deep: #3572a2;
  --color-highlight: #fbda7f;
  --color-text: #1a2d3d;
  --color-text-muted: #3d5566;
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius-lg: 20px;
  --radius-md: 12px;
  --shadow-soft: 0 18px 50px rgba(53, 114, 162, 0.35);
  --max-width: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: linear-gradient(
    165deg,
    var(--color-bg-deep) 0%,
    var(--color-bg-sky) 45%,
    #6ec4f0 100%
  );
  min-height: 100vh;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ---------- Layout ---------- */
.wrap {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(223, 107, 0, 0.15);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1rem 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}
.nav-links a {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--color-accent);
}

/* ---------- Hero (index unique: diagonal band + keyword strip) ---------- */
.hero-band {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 0 3rem;
}

.hero-band::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 70%;
  background: linear-gradient(
    -8deg,
    rgba(251, 218, 127, 0.35) 0%,
    transparent 55%
  );
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
  }
}

.hero-copy h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  line-height: 1.12;
  margin: 0 0 0.5rem;
  color: var(--color-white);
  text-shadow: 0 2px 24px rgba(26, 45, 61, 0.25);
}

.hero-copy .subtitle {
  font-size: 1.15rem;
  color: var(--color-highlight);
  font-weight: 600;
  margin: 0 0 1.25rem;
}

.keyword-marquee {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.keyword-marquee span {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.hero-lead {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0 0 1.5rem;
  max-width: 38ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.35rem;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(223, 107, 0, 0.45);
}
.btn-primary:hover {
  filter: brightness(1.05);
  text-decoration: none;
}

.btn-ghost {
  display: inline-block;
  padding: 0.75rem 1.2rem;
  color: var(--color-white);
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.6);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

/* Hero visual: floating card with SVG */
.hero-visual {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 420px;
}

.clarity-card {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  transform: rotate(-1.5deg);
}
@media (min-width: 900px) {
  .clarity-card {
    transform: rotate(-2deg);
  }
}

.clarity-card .deco-svg {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 0.75rem;
}

.clarity-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.floating-badge {
  position: absolute;
  bottom: -0.5rem;
  right: -0.25rem;
  background: var(--color-highlight);
  color: var(--color-text);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(26, 45, 61, 0.2);
  transform: rotate(3deg);
}

/* ---------- Content panels ---------- */
main section {
  padding: 2.5rem 0;
}

.panel {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

@media (min-width: 640px) {
  .panel {
    padding: 2.25rem 2rem;
  }
}

.panel h2 {
  margin: 0 0 1rem;
  font-size: 1.45rem;
  color: var(--color-bg-deep);
}

.panel p {
  margin: 0 0 1rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}
.panel p:last-child {
  margin-bottom: 0;
}

/* Feature rows (zigzag on wide screens: icon | text / text | icon) */
.features-zigzag {
  display: flex;
  flex-direction: column;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(53, 114, 162, 0.12);
}
.feature-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.feature-icon {
  justify-self: center;
}

.feature-icon svg {
  width: 72px;
  height: 72px;
  display: block;
}

.feature-text h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  color: var(--color-text);
}
.feature-text p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

@media (min-width: 720px) {
  /* Odd: [icon 88px] [text flexible] */
  .feature-row {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 1.5rem;
  }
  .feature-icon {
    justify-self: center;
  }

  /* Even: [text flexible] [icon 88px] — wide column for text, not 88px */
  .feature-row:nth-child(even) {
    grid-template-columns: minmax(0, 1fr) 88px;
  }
  .feature-row:nth-child(even) .feature-text {
    grid-column: 1;
    text-align: right;
  }
  .feature-row:nth-child(even) .feature-icon {
    grid-column: 2;
  }
}

/* Screenshots: vertical phone frames */
.shots-intro {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2rem;
}
.shots-intro h2 {
  margin: 0 0 0.5rem;
  color: var(--color-white);
}
.shots-intro p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
}

.shots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
  justify-items: center;
}

.phone-frame {
  width: 100%;
  max-width: 220px;
  background: linear-gradient(
    145deg,
    var(--color-bg-deep),
    #2a5a8a
  );
  border-radius: 28px;
  padding: 10px 10px 18px;
  box-shadow: 0 20px 50px rgba(26, 45, 61, 0.35);
  border: 3px solid rgba(251, 218, 127, 0.5);
}

.phone-frame .notch {
  width: 36%;
  height: 22px;
  background: #1a2d3d;
  border-radius: 0 0 14px 14px;
  margin: 0 auto 8px;
}

.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  vertical-align: middle;
  background: rgba(255, 255, 255, 0.08);
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
}

/* Repeating pattern strip */
.pattern-strip {
  margin: 2rem 0 0;
  padding: 1.5rem 0;
  overflow: hidden;
  opacity: 0.85;
}
.pattern-strip svg {
  width: 100%;
  height: 48px;
  display: block;
}

/* Philosophy pull-quote */
.pull-strip {
  margin: 2rem 0;
  padding: 1.75rem 1.5rem;
  background: linear-gradient(
    90deg,
    rgba(251, 218, 127, 0.95),
    rgba(255, 255, 255, 0.95)
  );
  border-left: 5px solid var(--color-accent);
  border-radius: var(--radius-md);
}
.pull-strip p {
  margin: 0;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.65;
}

/* Mini stats / trust row */
.trust-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.trust-pill {
  text-align: center;
  padding: 1rem;
  background: rgba(81, 173, 238, 0.12);
  border-radius: var(--radius-md);
  border: 1px solid rgba(53, 114, 162, 0.2);
}
.trust-pill strong {
  display: block;
  font-size: 0.8rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}
.trust-pill span {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 2rem 0 2.5rem;
  background: rgba(26, 45, 61, 0.35);
  color: rgba(255, 255, 255, 0.9);
}
.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}
@media (min-width: 640px) {
  .site-footer .wrap {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.site-footer a {
  color: var(--color-highlight);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-footer .fine {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* ---------- Legal / inner pages ---------- */
.page-hero {
  padding: 2rem 0 1rem;
}
.page-hero h1 {
  margin: 0 0 0.5rem;
  color: var(--color-white);
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
}
.page-hero .meta {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.legal-body {
  padding-bottom: 3rem;
}
.legal-body .panel {
  max-width: 720px;
  margin-inline: auto;
}
.legal-body h2 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.65rem;
  color: var(--color-bg-deep);
}
.legal-body h2:first-of-type {
  margin-top: 0;
}
.legal-body p,
.legal-body li {
  color: var(--color-text-muted);
  line-height: 1.75;
  font-size: 0.95rem;
}
.legal-body ul {
  padding-left: 1.25rem;
}
.legal-body li {
  margin-bottom: 0.5rem;
}

/* Contacts */
.contact-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contact-card dl {
  margin: 0;
}
.contact-card dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-top: 1rem;
}
.contact-card dt:first-child {
  margin-top: 0;
}
.contact-card dd {
  margin: 0.25rem 0 0;
  font-size: 1rem;
  color: var(--color-text);
}
.contact-card a {
  word-break: break-word;
}

.form-card label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--color-text);
}
.form-card input,
.form-card textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(53, 114, 162, 0.35);
  border-radius: var(--radius-md);
  font: inherit;
  margin-bottom: 1rem;
}
.form-card textarea {
  min-height: 120px;
  resize: vertical;
}
.form-card .hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: -0.5rem 0 1rem;
}

/* REPLACE: wire form to your backend or Formspree — form has no action by default */
.form-card form button {
  margin-top: 0.25rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: 8px;
}
