/* The home page (Figma "▶ Website" › Home page: Desktop · 1440, Mobile · 390). Other pages use style.css alone. */
.home {
  --text-muted: #7A97A0;
  --line-hairline: #24506A;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
.home .wrap, .home main.wrap { max-width: 1248px; margin: 0 auto; padding: 0 24px; }
.home h1, .home h2, .home h3 { margin: 0; font-family: "Barlow Semi Condensed", "Barlow", sans-serif; font-weight: 600; }
.home p { margin: 0; }
.play { display: inline-block; line-height: 0; }
.play img { height: 64px; width: auto; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-hairline); }
.nav { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; height: 100px; }
.nav .brand { font-size: 22px; }
.nav-play img { height: 44px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; height: 780px; padding-right: clamp(0px, 8vw - 35px, 80px); }
.hero-text { position: relative; z-index: 1; padding-top: 150px; }
.hero h1 { font-size: clamp(56px, 6vw, 84px); line-height: 1; max-width: 600px; }
.hero .lead { margin-top: 24px; max-width: 560px; font-size: 21px; line-height: 34px; }
.cta { margin-top: 40px; }
.cta .note { margin-top: 14px; font-size: 15px; line-height: 22px; color: var(--text-muted); }
/* The rings hang off the phone: --dx/--dy put the innermost ring's centre relative to the phone's top-left. */
.device { --s: 1.25; --dx: 390px; --dy: 80px; position: relative; width: 380px; margin-top: 110px; }
.device .phone { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
.isobars {
  position: absolute; pointer-events: none;
  width: calc(745px * var(--s)); left: calc(var(--dx) - 480.4px * var(--s)); top: calc(var(--dy) - 224px * var(--s));
}
.isobars text { font: 500 16px "Barlow Semi Condensed", sans-serif; fill: var(--text-muted); text-anchor: middle; }

/* Video: a poster with the play button until clicked, then the YouTube player in the same 16:9 box. */
.watch { padding-top: 120px; }
.player { position: relative; margin-top: 48px; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line-hairline); border-radius: 24px; background: var(--bg-raised); }
.player .poster, .player img, .player iframe { display: block; width: 100%; height: 100%; border: 0; }
.player img { object-fit: cover; }
.poster:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: 24px; }
.play-button {
  position: absolute; left: 50%; top: 50%; width: 112px; height: 112px; margin: -56px 0 0 -56px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 12px 40px rgba(0, 0, 0, .45); transition: transform .2s var(--ease);
}
.play-button::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -18px 0 0 -13px; border-style: solid; border-width: 18px 0 18px 32px; border-color: transparent transparent transparent var(--bg-base); }
.poster:hover .play-button { transform: scale(1.06); }
.duration { position: absolute; right: 20px; bottom: 20px; padding: 6px 12px; border-radius: 999px; background: rgba(12, 35, 49, .85); font: 600 16px/1 "Barlow", sans-serif; color: var(--text-primary); }

/* Features */
.features { padding: 120px 0; }
.home h2 { font-size: 56px; line-height: 60px; }
.features > .lead, .watch > .lead { margin-top: 16px; max-width: 720px; font-size: 20px; line-height: 32px; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.card { position: relative; overflow: hidden; height: 680px; padding: 48px; border-radius: 24px; background: var(--bg-raised); }
.label { font: 700 15px "Barlow Semi Condensed", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.card h3 { margin-top: 12px; font-size: 36px; line-height: 40px; }
.card p:not(.label) { margin-top: 12px; font-size: 18px; line-height: 28px; }
.card .phone { position: absolute; top: 270px; left: 50%; width: 320px; height: auto; margin-left: -160px; }

/* Free / Premium */
.band { display: flex; align-items: center; justify-content: space-between; gap: 48px; margin-bottom: 120px; padding: 56px; border: 1px solid var(--line); border-radius: 24px; }
.band h2 { font-size: 44px; line-height: 48px; }
.band p { margin-top: 16px; max-width: 700px; font-size: 18px; line-height: 29px; }
.band .play { flex: none; }

/* Footer */
.home .site-footer { max-width: none; margin: 0; padding: 40px 0 64px; border-top: 1px solid var(--line-hairline); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.site-footer .links a { margin: 0; color: var(--text-secondary); font-size: 16px; }
.site-footer .links a:not(:hover) { text-decoration: none; }
.site-footer .fine { margin-top: 20px; font-size: 14px; line-height: 22px; color: var(--text-muted); }

/* Motion: the hero rises and its isobars draw in once; cards rise as they scroll in. */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes rise-far { from { opacity: 0; transform: translateY(80px); } }
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes fade { from { opacity: 0; } }
@keyframes ping { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(3.5); } }
.hero-text > * { animation: rise .8s var(--ease) both; }
.hero-text > :nth-child(2) { animation-delay: .1s; }
.hero-text > :nth-child(3) { animation-delay: .2s; }
.device .phone { animation: rise-far 1.1s var(--ease) .2s both; }
.isobars path { stroke-dasharray: 1; animation: draw 1.8s cubic-bezier(.4, 0, .2, 1) both; }
.isobars path:nth-child(6) { animation-delay: .3s; }
.isobars path:nth-child(5) { animation-delay: .45s; }
.isobars path:nth-child(4) { animation-delay: .6s; }
.isobars path:nth-child(3) { animation-delay: .75s; }
.isobars path:nth-child(2) { animation-delay: .9s; }
.isobars path:nth-child(1) { animation-delay: 1.05s; }
.isobars .labels { animation: fade .6s 1.6s both; }
.isobars .sun { animation: fade .4s 1s both; }
.isobars .ping { transform-box: fill-box; transform-origin: center; animation: ping 3s ease-out 1.4s infinite both; }
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .card .phone { transform: translateY(90px); transition: transform 1.1s var(--ease) .15s; }
.js .card.in .phone { transform: none; }
.play img { transition: transform .2s var(--ease); }
.play:hover img { transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  .home *, .home *::before { animation: none !important; transition: none !important; }
  .js .reveal, .js .card .phone { opacity: 1; transform: none; }
  .isobars .ping { display: none; }
}

/* Phones (Mobile · 390) */
@media (max-width: 900px) {
  .nav { height: 72px; }
  .nav .brand { font-size: 18px; }
  .nav .brand img { width: 32px; height: 32px; border-radius: 8px; }
  .nav-play { display: none; }
  .hero-grid { display: block; height: auto; padding-right: 0; }
  .hero-text { padding-top: 24px; }
  .hero h1 { font-size: 48px; line-height: 50px; }
  .hero .lead { margin-top: 18px; font-size: 17px; line-height: 27px; }
  .cta { margin-top: 24px; }
  .play img { height: 56px; }
  .cta .note { margin-top: 12px; font-size: 14px; }
  .device { --s: .75; --dx: 310px; --dy: 90px; width: 290px; height: 420px; margin: 48px auto 0; }
  .isobars .outer { display: none; }
  .watch { padding-top: 64px; }
  .player { margin-top: 24px; border-radius: 20px; }
  .poster:focus-visible { border-radius: 20px; }
  .play-button { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .play-button::after { margin: -10px 0 0 -7px; border-width: 10px 0 10px 18px; }
  .duration { right: 16px; bottom: 16px; padding: 5px 10px; font-size: 13px; }
  .features { padding: 64px 0; }
  .home h2 { font-size: 36px; line-height: 40px; }
  .features > .lead, .watch > .lead { margin-top: 12px; font-size: 17px; line-height: 27px; }
  .cards { grid-template-columns: 1fr; gap: 20px; margin-top: 32px; }
  .card { height: 560px; padding: 28px 24px; border-radius: 20px; }
  .label { font-size: 13px; }
  .card h3 { margin-top: 10px; font-size: 28px; line-height: 31px; }
  .card p:not(.label) { margin-top: 10px; font-size: 16px; line-height: 25px; }
  .card .phone { top: 250px; width: 240px; margin-left: -120px; }
  .band { flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 64px; padding: 32px 24px; border-radius: 20px; }
  .band h2 { font-size: 30px; line-height: 33px; }
  .band p { font-size: 16px; line-height: 25px; }
  .home .site-footer { padding: 32px 0 48px; }
  .site-footer .links { gap: 8px 20px; }
  .site-footer .links a { font-size: 15px; }
  .site-footer .fine { margin-top: 16px; font-size: 13px; line-height: 20px; }
}
