/* Ace of Circles · checkout, thank-you and privacy pages
   Colours: Jupiter's Favour, from /assets/theme.css (light, dark-in-greens, Sea Green bands).
   One Gold button per page (the submit button). */
@import url("/assets/theme.css");
:root,.jf-base,.jf-hero,.jf-foot{
  --sea:var(--jf-ring); --deep:var(--jf-deep); --linen:var(--jf-bg); --paper:var(--jf-surface); --ink:var(--jf-text);
  --muted:var(--jf-muted); --gold:var(--jf-gold); --mint:var(--jf-soft); --teal:var(--jf-label); --err:var(--jf-err);
  --field:var(--jf-field); --line:var(--jf-line);
  --head:var(--jf-display);
}
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--linen);color:var(--ink);font-family:'Open Sans','Segoe UI',Arial,sans-serif;font-size:17px;line-height:1.6;-webkit-font-smoothing:antialiased}
h1,h2,h3,h4,p{margin:0}
h1,h2,h3,h4,.eyebrow,.btn,legend,.strong{font-family:var(--head);font-weight:600}
a{color:var(--teal)}
a:hover{color:var(--sea)}
:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
img{max-width:100%;display:block}
.small{font-size:14px;line-height:1.5}
.muted{color:var(--muted)}
.eyebrow{font-weight:500;font-size:13px;letter-spacing:3px;text-transform:uppercase;color:var(--teal)}
.eyebrow.gold{color:var(--gold)}

/* Header + footer */
.top{background:var(--jf-bg);padding:14px 16px;border-bottom:1px solid var(--jf-line)}
.top .eyebrow.gold{color:var(--jf-label)}
.logo-link{display:block}
.top-in,.foot-in{max-width:1080px;margin:0 auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px}
.logo{height:36px;width:auto}
.foot{background:var(--jf-bg);color:var(--jf-muted);padding:36px 16px;margin-top:56px}
.foot a{color:var(--jf-text)}

/* Layout */
.wrap{max-width:1080px;margin:0 auto;padding:0 16px}
.intro{display:flex;flex-direction:column;gap:10px;margin-bottom:28px;max-width:680px}
/* Linen intro under the header */
.intro{padding-top:clamp(30px,5vw,52px)}
.intro:has(+.done){max-width:680px;margin-inline:auto} /* line up with the centred column below */
/* Thank-you page: words beside Koko's illustration */
.intro.with-art{display:grid;grid-template-columns:minmax(0,1fr);gap:10px 28px;align-items:center}
.intro.with-art .done-art img{max-height:200px;width:auto}
@media (min-width:640px){.intro.with-art{grid-template-columns:minmax(0,1fr) 180px}.intro.with-art .done-art{grid-row:1/span 3;grid-column:2}}
.intro h1{font-size:clamp(28px,4.2vw,42px);line-height:1.15}
.back{align-self:flex-start;font-size:15px;text-decoration:none;margin-bottom:6px}
.layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:32px;align-items:start}
@media (max-width:880px){.layout{grid-template-columns:1fr}.layout .summary{order:-1}}

/* Cards and fieldsets */
.card{background:var(--paper);border-radius:24px;padding:clamp(22px,4vw,36px);display:flex;flex-direction:column;gap:16px}
form{display:flex;flex-direction:column;gap:22px}
fieldset{border:none;margin:0;min-width:0}
legend{float:left;width:100%;font-size:20px;line-height:1.3;padding:0}
legend+*{clear:both}
.sub{font-family:var(--head);font-weight:600;font-size:16px;color:var(--teal);margin-top:6px;padding-top:16px;border-top:1.5px solid var(--mint)}
.note{background:var(--mint);border-radius:12px;padding:14px 16px;font-size:15px}
.note.ok{box-shadow:0 0 0 2px var(--jf-sea) inset}
#status .note{margin-top:14px}

/* Fields */
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media (max-width:560px){.grid2{grid-template-columns:1fr}}
.field{display:flex;flex-direction:column;gap:6px;min-width:0;position:relative}
.field label{font-size:15px;font-weight:600}
.field .hint{font-weight:400;color:var(--muted)}
.field input,.field select,.field textarea{width:100%;min-height:52px;border:1.5px solid var(--muted);border-radius:12px;padding:0 16px;font:inherit;font-size:17px;background:var(--field);color:var(--ink)}
.field textarea{padding:12px 16px;min-height:96px;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--sea);outline:none;box-shadow:0 0 0 3px rgba(31,94,90,.2)}
.field small{font-size:14px;color:var(--muted)}
.field .err,.check .err{display:none;font-size:14px;color:var(--err);font-weight:600}
.field.bad input,.field.bad select,.field.bad textarea{border-color:var(--err)}
.field.bad .err,.check.bad .err{display:block}

/* Option picker */
.opts{display:flex;flex-direction:column;gap:10px}
.opt{position:relative;display:flex;align-items:center;gap:14px;padding:16px 18px;border:1.5px solid var(--line);border-radius:16px;background:var(--field);cursor:pointer}
.opt:hover{border-color:var(--teal)}
.opt input{width:22px;height:22px;flex:none;margin:0;accent-color:var(--sea)}
.opt .ol{flex:1;min-width:0;font-size:16px;line-height:1.4}
.opt .ol small{display:block;font-size:14px;color:var(--muted)}
.opt .op{font-family:var(--head);font-weight:600;font-size:18px;white-space:nowrap}
.opt:has(input:checked){border-color:var(--sea);background:color-mix(in srgb,var(--sea) 8%,var(--field));box-shadow:0 0 0 1px var(--sea) inset}

/* Checkboxes */
.check{display:flex;gap:12px;align-items:flex-start;font-size:15px;line-height:1.5;cursor:pointer}
.check input{width:22px;height:22px;flex:none;margin-top:2px;accent-color:var(--sea)}
.check>span{display:flex;flex-direction:column;gap:2px}

/* Summary */
.summary{position:sticky;top:20px;background:var(--paper);border-radius:24px;padding:24px;display:flex;flex-direction:column;gap:16px;box-shadow:0 18px 40px rgba(31,94,90,.10)}
@media (max-width:880px){.summary{position:static}}
.sum-head{display:flex;gap:14px;align-items:center}
.sum-head img{width:72px;height:auto;border-radius:4px;box-shadow:0 6px 16px rgba(31,94,90,.2);flex:none}
.sum-name{font-family:var(--head);font-weight:600;font-size:17px;line-height:1.3}
.sum-ed{font-size:14px;color:var(--muted)}
.sum-rows{display:flex;flex-direction:column;gap:8px;border-top:1.5px solid var(--mint);padding-top:14px;font-size:15px}
.sum-row{display:flex;justify-content:space-between;gap:12px}
.sum-total{display:flex;justify-content:space-between;align-items:baseline;gap:12px;border-top:1.5px solid var(--mint);padding-top:14px}
.sum-total b{font-family:var(--head);font-weight:600;font-size:28px}
.sum-total span{font-family:var(--head);font-weight:600}
.sum-unit{font-size:14px;color:var(--muted);text-align:right;margin-top:-10px}
.sum-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:6px;font-size:14px;color:var(--muted)}
.sum-list li{display:flex;gap:8px}
.sum-list li::before{content:"";flex:0 0 10px;height:10px;margin-top:.45em;border-radius:50%;border:2px solid var(--sea)}

/* The one Gold button */
.btn{display:flex;width:100%;align-items:center;justify-content:center;text-align:center;min-height:58px;padding:12px 28px;border:0;border-radius:40px;background:var(--jf-accent);color:var(--jf-on-accent);font-size:17px;line-height:1.3;text-decoration:none;cursor:pointer}
.btn:hover{filter:brightness(1.05);color:var(--jf-on-accent)}
.btn[disabled]{opacity:.6;cursor:wait}
.ghost{display:flex;width:100%;align-items:center;justify-content:center;min-height:50px;padding:10px 24px;border:1.5px solid var(--sea);border-radius:40px;background:transparent;color:var(--sea);font-family:var(--head);font-weight:600;font-size:16px;text-decoration:none;cursor:pointer}
.ghost:hover{background:var(--mint);color:var(--ink)}
.formerr{display:none;background:color-mix(in srgb,var(--err) 12%,var(--paper));border:1.5px solid var(--err);color:var(--err);border-radius:12px;padding:12px 16px;font-size:15px;font-weight:600}
.formerr.show{display:block}

/* Confirmation */
.done{max-width:680px;margin:0 auto;display:flex;flex-direction:column;gap:20px}
.done h1{font-size:clamp(28px,4vw,40px);line-height:1.15}
.steps{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:14px}
.steps li{display:flex;gap:14px;align-items:flex-start}
.steps b{flex:0 0 34px;height:34px;border-radius:50%;border:3px dotted var(--sea);display:flex;align-items:center;justify-content:center;font-family:var(--head);color:var(--sea);font-size:15px}
.recap{white-space:pre-wrap;font-family:ui-monospace,Consolas,monospace;font-size:13.5px;line-height:1.5;background:var(--field);border:1.5px solid var(--line);border-radius:12px;padding:14px 16px;max-height:320px;overflow:auto}
.row-btns{display:flex;flex-wrap:wrap;gap:10px}
.row-btns .ghost{width:auto;flex:1 1 200px}
.ref{font-family:var(--head);font-weight:600;color:var(--sea)}

/* Reading picker (no reading chosen) */
.pick{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,230px),1fr));gap:16px}
.pick a{display:flex;gap:12px;align-items:center;background:var(--paper);border-radius:16px;padding:12px;text-decoration:none;color:var(--ink)}
.pick a:hover{box-shadow:0 0 0 2px var(--sea) inset}
.pick img{width:52px;border-radius:3px;flex:none}
.pick span{font-size:15px;line-height:1.35}
.pick small{display:block;color:var(--muted);font-size:13.5px}

/* ---- Store polish: calmer, more spacious, Apple-store-like ---- */
:root,.jf-base,.jf-hero,.jf-foot{--ease:cubic-bezier(.2,.7,.2,1);--hairline:var(--jf-line)}
.top{position:sticky;top:0;z-index:10;background:color-mix(in srgb,var(--jf-bg) 88%,transparent);-webkit-backdrop-filter:saturate(160%) blur(16px);backdrop-filter:saturate(160%) blur(16px)}
.intro{gap:12px;margin-bottom:34px}
.intro h1{font-size:clamp(32px,5vw,48px);line-height:1.06;letter-spacing:-.022em}
.card{border-radius:28px;border:1px solid var(--hairline);padding:clamp(24px,4vw,40px)}
legend{font-size:21px;letter-spacing:-.01em}
.opt{border-radius:16px;border-color:var(--hairline);padding:17px 18px;transition:border-color .2s,box-shadow .2s,transform .18s var(--ease)}
.opt:active{transform:scale(.985)}
.field input,.field select,.field textarea{border:1.5px solid rgb(76 85 88 / .35);border-radius:14px;transition:border-color .2s,box-shadow .2s}
.summary{border-radius:28px;border:1px solid var(--hairline);box-shadow:0 2px 4px rgb(31 94 90 / .06),0 24px 48px -20px rgb(31 94 90 / .25);top:92px}
.btn{border-radius:14px;min-height:60px;transition:transform .18s var(--ease),filter .2s}
.btn:active{transform:scale(.98)}
.ghost{border-radius:14px;transition:background .2s,transform .18s var(--ease)}
@keyframes rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.motion .intro,.motion .layout,.motion .done{animation:rise .6s var(--ease) both}
.motion .layout{animation-delay:.06s}
@media (prefers-reduced-motion:reduce){.intro,.layout,.done{animation:none}}

/* Straight to Stripe: while the payment page opens, only this message shows */
.goto{display:none}
.going > :not(.goto){display:none}
.going .goto{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;min-height:50vh;padding:40px 0}
.goto-h{font-family:var(--head);font-weight:600;font-size:21px;color:var(--ink)}
.spin{width:36px;height:36px;border-radius:50%;border:3px solid var(--mint);border-top-color:var(--teal);animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.spin{animation-duration:2.4s}}

/* place of birth suggestions */
.places{position:absolute;left:0;right:0;z-index:20;margin:0;padding:6px;list-style:none;background:var(--field);border:1.5px solid var(--sea);border-radius:12px;box-shadow:0 10px 28px rgba(0,0,0,.14);max-height:320px;overflow:auto}
.places li{padding:10px 12px;border-radius:8px;cursor:pointer;font-size:16px;line-height:1.35}
.places li span{color:var(--muted)}
.places li:hover,.places li.on{background:color-mix(in srgb,var(--sea) 10%,var(--field))}

/* Introducer code card */
.linkbtn{background:none;border:0;padding:0;font:inherit;color:var(--teal,#3E7472);text-decoration:underline;cursor:pointer;min-height:44px}

/* Date and time pickers: same look as the other boxes, left-aligned on iPhone */
.field input[type=date],.field input[type=time]{display:block;-webkit-appearance:none;appearance:none;text-align:left;line-height:52px}
.field input[type=date]::-webkit-date-and-time-value,.field input[type=time]::-webkit-date-and-time-value{text-align:left}
.field input[type=date]::-webkit-calendar-picker-indicator,.field input[type=time]::-webkit-calendar-picker-indicator{cursor:pointer;opacity:.7}
@media (prefers-color-scheme:dark){.field input[type=date],.field input[type=time]{color-scheme:dark}}
.dateecho{display:block;margin-top:6px;min-height:1.3em}
.dateecho:empty{display:none}
/* Introducer's own price (signed in to the Introducer area) */
.sum-row.own{color:var(--sea)}
.sum-row.own small{display:block;font-size:13px;color:var(--muted-ink,#4C5558);margin-top:2px}
@media (prefers-color-scheme:dark){.sum-row.own{color:#9DD3C8}.sum-row.own small{color:inherit;opacity:.8}}
@media (max-width:639px){.logo{height:30px}}
