/* =====================================================
   A WARM NOTE — Emotional Intelligence Homepage Concept
   Direction: quiet, poetic, tactile, mobile-first.
   Replace illustration placeholders when final art is ready.
   ===================================================== */

:root {
  --paper: #fffaf2;
  --paper-2: #f7ecd9;
  --ink: #241c18;
  --muted: #71645b;
  --soft: #a97451;
  --warm: #e7b86d;
  --blush: #f4d6ca;
  --sage: #d9e5d4;
  --sky: #dcecf2;
  --line: rgba(36, 28, 24, .13);
  --card: rgba(255, 250, 242, .76);
  --shadow: 0 24px 70px rgba(72, 47, 28, .14);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --maxw: 1120px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  background:
    radial-gradient(circle at 18% 8%, rgba(244, 214, 202, .78), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(220, 236, 242, .84), transparent 29%),
    radial-gradient(circle at 58% 86%, rgba(217, 229, 212, .76), transparent 34%),
    linear-gradient(180deg, #fff8ee 0%, #f7ecd9 52%, #fffaf2 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background-image:
    linear-gradient(rgba(36, 28, 24, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 28, 24, .035) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.site-shell {
  position: relative;
  z-index: 1;
}

/* Quiet top bar */
.topbar {
  width: min(var(--maxw), calc(100% - 36px));
  margin: 0 auto;
  padding: 22px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .03em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff3df;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(72, 47, 28, .08);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.text-link {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
}

.small-btn {
  text-decoration: none;
  background: var(--ink);
  color: #fffaf2;
  padding: 10px 15px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(36, 28, 24, .16);
}

/* Hero */
.hero {
  width: min(var(--maxw), calc(100% - 36px));
  margin: 0 auto;
  min-height: calc(100vh - 58px);
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 42px;
  padding: 58px 0 72px;
}

.hero-copy {
  max-width: 700px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: var(--soft);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: .55;
}

h1 {
  margin: 0;
  font-size: clamp(48px, 10vw, 112px);
  line-height: .92;
  letter-spacing: -.065em;
  font-weight: 500;
  max-width: 880px;
}

.hero-lede {
  margin: 28px 0 0;
  max-width: 600px;
  color: var(--muted);
  font-size: clamp(21px, 3.6vw, 31px);
  line-height: 1.28;
  letter-spacing: -.018em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cta-primary,
.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform .24s var(--ease), box-shadow .24s var(--ease), background .24s var(--ease);
}

.cta-primary {
  background: var(--ink);
  color: #fffaf2;
  box-shadow: 0 22px 48px rgba(36, 28, 24, .19);
}

.cta-secondary {
  background: rgba(255, 250, 242, .62);
  color: var(--ink);
  border: 1px solid var(--line);
}

.cta-primary:hover,
.cta-secondary:hover {
  transform: translateY(-3px);
}

.hero-stage {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

/* Image placeholder: replace background-image with final AWN illustration.
   Suggested file: /assets/img/home/hero-friends-under-tree.webp */
   
/* =====================================================
   HERO ILLUSTRATION
   ===================================================== */

.hero-illustration-wrap{
  position:absolute;
  inset:0;
  border-radius:var(--radius-xl);
  overflow:hidden;
  border:1px solid rgba(36,28,24,.09);
  box-shadow:var(--shadow);
}

.hero-illustration{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform:scale(1.01);
}

/* subtle cinematic overlay */
.hero-illustration-wrap::after{
  content:"";
  position:absolute;
  inset:0;

  background:
    linear-gradient(
      to top,
      rgba(36,28,24,.18),
      rgba(36,28,24,0) 35%
    ),
    linear-gradient(
      to right,
      rgba(255,250,242,.08),
      rgba(255,250,242,0)
    );

  pointer-events:none;
}

.phone-card {
  position: relative;
  width: min(360px, 86vw);
  padding: 16px;
  border-radius: 42px;
  background: rgba(36, 28, 24, .88);
  box-shadow: 0 30px 80px rgba(36, 28, 24, .28);
  transform: rotate(-2.5deg);
}

.phone-screen {
  min-height: 520px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 30% 10%, rgba(244, 214, 202, .92), transparent 34%),
    linear-gradient(180deg, #fffaf2, #f6e8d3);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.phone-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(36, 28, 24, .52);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.note-preview {
  margin: auto 0;
  padding: 30px 24px;
  border-radius: 28px;
  background: rgba(255, 250, 242, .78);
  border: 1px solid rgba(36, 28, 24, .1);
  box-shadow: 0 18px 42px rgba(72, 47, 28, .13);
}

.note-to,
.note-from {
  color: var(--soft);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.note-text {
  margin: 18px 0;
  font-size: 31px;
  line-height: 1.12;
  letter-spacing: -.03em;
}

.phone-bottom {
  margin-top: 22px;
  display: flex;
  gap: 8px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pill {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  border-radius: 999px;
  background: rgba(36, 28, 24, .07);
  color: rgba(36, 28, 24, .64);
  font-size: 12px;
  font-weight: 800;
}

.floating-note {
  position: absolute;
  right: 6%;
  bottom: 7%;
  max-width: 230px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 250, 242, .82);
  border: 1px solid var(--line);
  box-shadow: 0 18px 46px rgba(72, 47, 28, .13);
  color: var(--muted);
  backdrop-filter: blur(18px);
}

.floating-note strong {
  color: var(--ink);
}

/* Sections */
.section {
  width: min(var(--maxw), calc(100% - 36px));
  margin: 0 auto;
  padding: 74px 0;
}

.section-narrow {
  max-width: 820px;
}

.section-kicker {
  margin: 0 0 14px;
  color: var(--soft);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-size: clamp(39px, 6.5vw, 76px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 500;
}

.section-text {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(20px, 3vw, 27px);
  line-height: 1.33;
  letter-spacing: -.018em;
}

/* Emotional examples */
.note-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 34px;
}

.example-note {
  min-height: 220px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 16px 44px rgba(72, 47, 28, .09);
}

.example-note:nth-child(2) { transform: rotate(1deg); }
.example-note:nth-child(3) { transform: rotate(-1deg); }

.example-icon {
  font-size: 27px;
  margin-bottom: 18px;
}

.example-note p {
  margin: 0;
  font-size: 28px;
  line-height: 1.16;
  letter-spacing: -.035em;
}

.example-note span {
  display: block;
  margin-top: 22px;
  color: var(--soft);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Story block */
.story-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: rgba(255, 250, 242, .54);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* =====================================================
   STORY ILLUSTRATION
   Reuses the same AWN illustration, framed for the story panel.
   ===================================================== */
.story-image {
  min-height: 360px;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(36, 28, 24, .09);
  box-shadow: 0 18px 46px rgba(72, 47, 28, .12);
  background: #f6e7d4;
}

.story-image{
  min-height:unset;
  aspect-ratio: 4 / 3;
}

.story-image picture{
  display:block;
  width:100%;
  height:100%;
}

.story-illustration{
  width:100%;
  height:100%;
  min-height:0;
  object-fit:cover;
  object-position:center;
  display:block;
  transform:scale(1.01);
}

.story-copy {
  padding: 10px 8px 4px;
}

.story-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 23px;
  line-height: 1.42;
}

.story-copy p + p { margin-top: 18px; }

/* How it works */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 34px;
  counter-reset: step;
}

.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 242, .62);
  border: 1px solid var(--line);
}

.step::before {
  content: counter(step);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fffaf2;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 900;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 24px;
  letter-spacing: -.025em;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

/* AI positioning */
.ai-panel {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 85% 15%, rgba(220, 236, 242, .82), transparent 30%),
    linear-gradient(135deg, rgba(36, 28, 24, .92), rgba(60, 43, 32, .9));
  color: #fffaf2;
  box-shadow: 0 24px 70px rgba(36, 28, 24, .22);
}

.ai-panel .section-kicker,
.ai-panel .section-text {
  color: rgba(255, 250, 242, .76);
}

.ai-panel h2 {
  max-width: 790px;
}

.prompt-card {
  margin-top: 28px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 250, 242, .1);
  border: 1px solid rgba(255, 250, 242, .18);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.prompt-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.chip {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 250, 242, .12);
  color: rgba(255, 250, 242, .86);
  font-size: 13px;
  font-weight: 800;
}

.generated {
  margin: 0;
  color: #fffaf2;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 27px;
  line-height: 1.24;
  letter-spacing: -.025em;
}

/* Final CTA */
.final {
  text-align: center;
  padding-bottom: 92px;
}

.final-card {
  padding: 48px 24px;
  border-radius: var(--radius-xl);
  background: rgba(255, 250, 242, .62);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.final-card h2 {
  margin-inline: auto;
  max-width: 780px;
}

.final-card .hero-actions {
  justify-content: center;
}

.footer {
  width: min(var(--maxw), calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 48px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
}

@media (min-width: 760px) {
  .hero {
    grid-template-columns: 1.04fr .96fr;
    padding-top: 40px;
  }

  .note-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .story-panel {
    grid-template-columns: .92fr 1.08fr;
    padding: 28px;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 759px) {
  .topbar {
    width: min(100% - 28px, var(--maxw));
  }

  .topbar-actions .text-link {
    display: none;
  }

  .hero,
  .section,
  .footer {
    width: min(100% - 28px, var(--maxw));
  }

  .hero-stage {
    min-height: 470px;
  }

  .hero-illustration-wrap {
    inset: 22px 0 0;
  }

  .phone-card {
    width: min(326px, 84vw);
  }

  .phone-screen {
    min-height: 448px;
  }

  .note-text {
    font-size: 27px;
  }

  .floating-note {
    display: none;
  }

  .section {
    padding: 54px 0;
  }

  .example-note:nth-child(2),
  .example-note:nth-child(3) {
    transform: none;
  }

  .ai-panel {
    padding: 28px 22px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .phone-card {
    animation: breathe 7s var(--ease) infinite alternate;
  }

  .floating-note {
    animation: drift 8s var(--ease) infinite alternate;
  }

  @keyframes breathe {
    from { transform: rotate(-2.5deg) translateY(0); }
    to { transform: rotate(-1deg) translateY(-10px); }
  }

  @keyframes drift {
    from { transform: translateY(0) rotate(1deg); }
    to { transform: translateY(-16px) rotate(-1deg); }
  }
}
