/* insurance page: own rules from home-sample/insurance-sample-6 */
/* =================== Insurance page (sample 1) =================== */

  /* Hero: a fanned hand of cards that deals in, floats, and spreads on hover */
  .hero--ins .wrap { min-height: min(620px, calc(100vh - 86px)); }
  .hero--ins .hero-actions { gap: 26px; align-items: center; flex-wrap: wrap; }
  .fan { position: relative; justify-self: center; width: min(100%, 480px); height: 400px; }
  .fcard {
    position: absolute; left: 50%; top: 50%; width: 250px; height: 300px; border-radius: 26px; padding: 26px 24px;
    display: grid; align-content: space-between; box-shadow: 0 30px 50px -30px rgba(76,28,8,.55);
    transform-origin: 50% 115%; transform: translate(-50%, -50%) translate(var(--tx, 0px), var(--ty, 0px)) rotate(var(--r, 0deg)) scale(var(--s, 1));
    transition: transform .8s var(--ease-spring);
  }
  .fcard .lbl { font-weight: 700; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
  .fcard h3 { color: inherit; font-size: 1.75rem; line-height: 1.08; margin-top: 10px; }
  .fcard p { margin: 0; font-weight: 600; font-size: .95rem; line-height: 1.45; }
  .fcard .dots { display: flex; gap: 6px; }
  .fcard .dots i { width: 10px; height: 10px; border-radius: 50%; background: currentColor; opacity: .35; }
  .fcard .dots i:first-child { opacity: 1; }
  .c1 { --tx: -84px; --r: -11deg; background: var(--swell); color: var(--deep); z-index: 1; }
  .c2 { --tx: 0px; --r: 0deg; background: var(--current); color: var(--white); z-index: 2; }
  .c3 { --tx: 84px; --r: 11deg; background: var(--coral); color: var(--deep); z-index: 3; }
  .fan:hover .c1 { --tx: -132px; --r: -17deg; }
  .fan:hover .c2 { --tx: 0px; --r: -1deg; }
  .fan:hover .c3 { --tx: 132px; --r: 17deg; }
  /* Opened fan, wherever there is room: the cards spread side by side without overlapping, scaled to the
     free space beside the headline (sizes set by script), so every card reads in full */
  .fan.fits:is(:hover, .is-open) .fcard { --s: var(--open-s); --ty: var(--open-ty); }
  .fan.fits:is(:hover, .is-open) .c1 { --tx: calc(var(--open-shift) - var(--open-tx)); --r: -3deg; }
  .fan.fits:is(:hover, .is-open) .c2 { --tx: var(--open-shift); --r: 0deg; }
  .fan.fits:is(:hover, .is-open) .c3 { --tx: calc(var(--open-shift) + var(--open-tx)); --r: 3deg; }
  .motion .fan { animation: fan-float 7s ease-in-out 2s infinite; }
  .motion .fcard { opacity: 0; translate: 0 90px; transition: transform .8s var(--ease-spring), opacity .5s ease calc(.45s + var(--n) * .16s), translate 1.1s var(--ease-out) calc(.45s + var(--n) * .16s); }
  .hero-in .fcard { opacity: 1; translate: 0 0; }
  @keyframes fan-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

  /* Phone version of the three options: a quiet list with hairline dividers, a brand-colour dot,
     the name in the headline face and a chevron; each row jumps to its section below */
  .ways { display: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .ways a { display: grid; grid-template-columns: 10px 1fr 18px; gap: 16px; align-items: center; padding: 18px 2px; text-decoration: none; color: var(--deep); }
  .ways a + a { border-top: 1px solid var(--line); }
  .ways .sw { width: 10px; height: 10px; border-radius: 50%; background: var(--c); align-self: start; margin-top: 9px; }
  .ways strong { display: block; font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 36; font-weight: 600; font-size: 1.22rem; line-height: 1.25; }
  .ways strong + span { display: block; margin-top: 3px; font-size: .98rem; line-height: 1.45; color: var(--warm); }
  .ways svg { width: 18px; height: 18px; color: var(--current); transition: translate .3s var(--ease-out); }
  .ways a:active svg, .ways a:hover svg { translate: 3px 0; }
  .ways a:focus-visible { outline: 3px solid var(--swell); outline-offset: 2px; border-radius: 8px; }

  /* Plan checker */
  .checker { padding: 100px 0 40px; }
  .checker .wrap { display: grid; grid-template-columns: .75fr 1.25fr; gap: 72px; align-items: center; }
  /* heading only on the left (the box itself says how it works), so it carries a little more weight */
  .checker h2 { font-size: clamp(2.4rem, 4.2vw, 3.6rem); max-width: 10ch; text-wrap: balance; }
  .checker h2 .hl { background: linear-gradient(var(--swell), var(--swell)) no-repeat 0 86% / 100% 28%; padding: 0 .06em; }
  .motion .checker h2 .hl { background-size: 0% 28%; transition: background-size 1s var(--ease-out) .5s; }
  .motion .checker .wrap > .in h2 .hl { background-size: 100% 28%; }
  /* the way out when a plan isn't listed: always visible, not only after a search comes up empty */
  .check-call { margin: 22px 0 0; max-width: 32ch; font-size: 1.08rem; line-height: 1.55; }  .check-box { position: relative; overflow: hidden; background: var(--white); border-radius: 28px; padding: 32px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -44px rgba(76,28,8,.5); }
  .check-box > :not(canvas) { position: relative; z-index: 1; }
  .check-box label { display: block; font-weight: 700; color: var(--deep); margin-bottom: 10px; }
  .field { position: relative; }
  .field svg { position: absolute; left: 18px; top: 50%; translate: 0 -50%; width: 22px; height: 22px; color: var(--current); pointer-events: none; }
  .field input {
    width: 100%; font: 600 1.15rem/1.2 var(--body); color: var(--deep); background: var(--cream);
    border: 2px solid var(--line); border-radius: 16px; padding: 18px 18px 18px 52px; transition: border-color .2s ease, box-shadow .2s ease;
  }
  .field input::placeholder { color: var(--warm); opacity: .7; }
  .field input:focus { outline: none; border-color: var(--current); box-shadow: 0 0 0 4px var(--swell); }
  .quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
  .quick button { border: 0; cursor: pointer; border-radius: 999px; padding: 11px 15px; background: var(--glide-soft); color: var(--deep); font: 600 .9rem/1 var(--body); transition: background-color .2s ease; }
  .quick button:hover { background: var(--swell); }
  .result { margin-top: 18px; min-height: 92px; border-radius: 18px; padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; background: var(--glide-soft); color: var(--deep); transition: background-color .35s ease, color .35s ease; }
  .result .r-ico { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--deep); font-weight: 800; }
  .result strong { display: block; font-size: 1.1rem; line-height: 1.35; }
  .result span { display: block; margin-top: 4px; font-size: .95rem; }
  .result.is-in { background: var(--swell); }
  .result.is-partner { background: var(--current); color: var(--white); }
  .result.is-soon { background: var(--white); box-shadow: inset 0 0 0 2px var(--pulse); }
  .result.pop { animation: pop .5s var(--ease-spring); }
  @keyframes pop { 0% { transform: scale(.97); } 60% { transform: scale(1.015); } 100% { transform: none; } }
  .confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }

  /* Plan lists */
  .ins { padding: 60px 0 90px; }
  .plans { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 18px; align-items: stretch; }
  .plan { position: relative; border-radius: 26px; padding: 30px 28px 32px; }
  .plan h3 { font-family: var(--body); font-weight: 700; font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; color: inherit; margin: 0 0 18px; line-height: 1.3; }
  .plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
  .plan li { display: flex; gap: 12px; align-items: baseline; font-weight: 600; font-size: 1.08rem; line-height: 1.35; border-radius: 8px; transition: outline-color .3s ease; outline: 2px solid transparent; outline-offset: 4px; }
  .plan li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; flex: none; transform: translateY(-1px); }
  .plan li.is-match { outline-color: currentColor; animation: nudge .9s var(--ease-spring); }
  @keyframes nudge { 30% { transform: translateX(6px) scale(1.05); } 100% { transform: none; } }
  .p-in { background: var(--swell); color: var(--deep); }
  .p-in li::before { background: var(--pulse); }
  .p-partner { background: var(--current); color: var(--white); }
  .p-partner li::before { background: var(--swell); }
  .p-soon { background: var(--white); color: var(--deep); border: 3px dashed var(--pulse); }
  .p-soon h3 { color: var(--pulse-ink); }
  .p-soon ul { grid-template-columns: 1fr 1fr; column-gap: 18px; }
  .p-soon li::before { background: var(--deep); }
  .p-soon .tag {
    position: absolute; top: -17px; right: 22px; rotate: 3deg; transform-origin: 50% -14px;
    background: var(--pulse-ink); color: var(--white); font-weight: 700; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
    padding: 8px 14px; border-radius: 999px; box-shadow: 0 10px 20px -12px rgba(76,28,8,.5);
  }
  .motion .p-soon.in .tag { animation: swing 1.8s var(--ease-out) .35s both; }
  .motion .p-soon:hover .tag { animation: swing-small 1.2s var(--ease-out); }
  @keyframes swing { 0% { transform: rotate(-38deg); } 30% { transform: rotate(20deg); } 52% { transform: rotate(-10deg); } 72% { transform: rotate(5deg); } 100% { transform: rotate(0); } }
  @keyframes swing-small { 0% { transform: rotate(0); } 30% { transform: rotate(-9deg); } 60% { transform: rotate(5deg); } 100% { transform: rotate(0); } }
  .ins-note { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; background: var(--glide-soft); border-radius: 22px; padding: 22px 26px; }
  .ins-note p { margin: 0; font-size: 1.12rem; color: var(--deep); }
  .ins-note .fine { font-size: .9rem; color: var(--warm); margin-top: 4px; }

  /* Groove Smile Club (redesigned 2026-11-11): one centered, full-width deep-brown band.
     Lead-in + name, a short intro, the three plans in one quiet row, the six benefits grouped under
     three yellow icon circles, the fine print, then Book / Call. */
  .club { position: relative; overflow: hidden; background: var(--deep); color: rgba(251,250,240,.86); padding: 104px 0 100px; text-align: center; }
  .club > .wrap { position: relative; z-index: 1; }
  .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .club .lead-in { margin: 0 0 10px; font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 36; font-weight: 500; font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.3; color: var(--swell); }
  .club h2 { color: var(--cream); font-size: clamp(2.5rem, 5vw, 4rem); }
  .club .intro { margin: 18px auto 0; max-width: 54ch; font-size: 1.12rem; line-height: 1.6; text-wrap: pretty; }

  .club-plans { list-style: none; margin: 36px auto 0; padding: 0; display: inline-grid; grid-template-columns: repeat(3, auto); border-top: 1px solid rgba(251,250,240,.2); border-bottom: 1px solid rgba(251,250,240,.2); }
  .club-plans li { display: flex; align-items: baseline; justify-content: center; gap: 10px; padding: 14px 28px; }
  .club-plans li + li { border-left: 1px solid rgba(251,250,240,.2); }
  .club-plans i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; align-self: center; }
  .club-plans strong { font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 36; font-weight: 600; font-size: 1.18rem; color: var(--cream); white-space: nowrap; }
  .club-plans span { font-size: .95rem; white-space: nowrap; }

  .perks { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .perk-ic { width: 128px; height: 128px; margin: 0 auto 24px; border-radius: 50%; background: var(--swell); display: grid; place-items: center; }
  .perk-ic svg { width: 58px; height: 58px; }
  .perks p { margin: 0 auto; max-width: 22ch; font-size: 1.22rem; line-height: 1.4; font-weight: 600; color: var(--cream); text-wrap: balance; }
  .perks p strong { color: var(--swell); }
  .motion .perks li.rv .perk-ic { transform: scale(.7); transition: transform .8s var(--ease-spring) calc(var(--rv-d, 0s) + .15s); }
  .motion .perks li.rv.in .perk-ic { transform: none; }

  .club .fine { margin: 44px 0 0; font-size: .95rem; color: rgba(251,250,240,.72); }
  .club-actions { margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 16px; }
  .btn--sun { background: var(--swell); color: var(--deep); }
  .btn--sun:hover { background: var(--cream); }
  .btn--ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(251,250,240,.6); }
  .btn--ghost:hover { background: rgba(251,250,240,.1); }

  @media (prefers-reduced-motion: reduce) {
    .fcard, .result, .quick button, .field input { transition: none; }
    .fan:hover .c1 { --tx: -84px; --r: -11deg; } .fan:hover .c2 { --tx: 0px; --r: 0deg; } .fan:hover .c3 { --tx: 84px; --r: 11deg; }
  }

  /* stack the hero earlier than other pages: below ~1100px there isn't room beside the headline
     for the opened card fan, so the cards go under the words and get the full width */
  @media (max-width: 1100px) { .hero--ins .wrap { grid-template-columns: 1fr; min-height: 0; gap: 56px; padding-top: 40px; } }
  @media (max-width: 1000px) {
    .checker .wrap { grid-template-columns: 1fr; gap: 28px; }
    .checker h2 { max-width: none; }
    .plans { grid-template-columns: 1fr 1fr; }
    .p-soon { grid-column: 1 / -1; }
  }
  @media (max-width: 820px) {
    .fan { height: 340px; }
    .fcard { width: 210px; height: 260px; padding: 22px 20px; }
    .fcard h3 { font-size: 1.5rem; }
    .c1 { --tx: -64px; } .c3 { --tx: 64px; }
    .fan:hover .c1 { --tx: -90px; } .fan:hover .c3 { --tx: 90px; }
    .perks { grid-template-columns: 1fr; gap: 36px; margin-top: 52px; }
    .perk-ic { width: 104px; height: 104px; margin-bottom: 18px; }
    .perk-ic svg { width: 48px; height: 48px; }
  }
  /* narrow screens: the three plans stack as centered rows */
  @media (max-width: 700px) {
    .club-plans { display: grid; grid-template-columns: 1fr; width: 100%; }
    .club-plans li + li { border-left: 0; border-top: 1px solid rgba(251,250,240,.2); }
  }
  @media (max-width: 640px) { .plans { grid-template-columns: 1fr; } .p-soon { margin-top: 10px; } }
  @media (max-width: 560px) {
    .checker { padding: 64px 0 24px; }
    .check-box { padding: 22px 18px; border-radius: 22px; }
    .ins, .club { padding: 64px 0 72px; }
    /* phones can't hover to open the card fan, so it gives way to a plain list of the three options */
    .fan { display: none; }
    .ways { display: block; }
    .hero--ins .hero-actions .link { display: none; }   /* the list's last row already leads to the Smile Club */
    .p-soon ul { grid-template-columns: 1fr; }
    .club { padding: 72px 0; }
    .club .intro { font-size: 1.04rem; }
    .perks p { font-size: 1.12rem; }
    .club-actions .btn, .ins-note .btn { width: 100%; }
  }
