/* inmyshoebox.com: the welcome page, support, privacy and the beta form. Shoebox 2 for iPhone.
   The app's own colors and type. No black anywhere: shadows are the plum shade.
   The web version (index.html, styles.css) keeps its own styles. */
:root {
  --ground: #F6F3E8;      /* Wheat */
  --sheet: #FBF9F1;
  --card: #E8ECDA;
  --ink: #2A1E2E;         /* Plum Ink */
  --quiet: #6A6070;
  --line: #DEDAC9;
  --plum: #56395F;        /* the box */
  --night: #3B2240;       /* Plum Night */
  --nectar: #F9C93A;      /* the lid */
  --lip: #D4A21E;
  --wheat: #F6F3E8;
  --shade: 26, 16, 32;    /* #1A1020 as rgb, for shadows */
  --accent: #3B2240;
  --reason: #FFD7AA;
  --tile: #F6F3E8;
  --logo-box: #3B2240;
  --logo-cards: #A798AD;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1120px;
  --gut: max(20px, env(safe-area-inset-left, 0px));
  --gut-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #3B2240; --sheet: #442B4B; --card: #4A3352; --ink: #F1E9D8; --quiet: #BBA7BE; --line: #54405A;
    --accent: #F9C93A; --reason: rgba(249, 201, 58, .28); --tile: #3B2240; --logo-box: #6A4F73; --logo-cards: #B7A6BA;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #3B2240; --sheet: #442B4B; --card: #4A3352; --ink: #F1E9D8; --quiet: #BBA7BE; --line: #54405A;
  --accent: #F9C93A; --reason: rgba(249, 201, 58, .28); --tile: #3B2240; --logo-box: #6A4F73; --logo-cards: #B7A6BA;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 18px/1.55 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--nectar); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { text-wrap: balance; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut-r); }

/* ---------- top bar ---------- */
.top { position: relative; z-index: 2; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.mark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.mark svg { width: 34px; height: 34px; border-radius: 8px; background: var(--tile); box-shadow: 0 1px 2px rgba(var(--shade), .14), 0 4px 10px rgba(var(--shade), .10); }
.bar .go { color: var(--ink); font-weight: 600; font-size: 16px; text-decoration: none; }
.bar .go:hover { text-decoration: underline; }

/* ---------- words for actions ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 14px; font: 600 17px/1 var(--sans); text-decoration: none; border: 0; cursor: pointer; }
.btn.lid { background: var(--nectar); color: #2A1E2E; box-shadow: inset 0 -4px 0 var(--lip), 0 6px 14px rgba(var(--shade), .18); padding-bottom: 4px; }
.btn.lid:hover { filter: brightness(1.03); }
.btn.word { background: none; color: var(--ink); padding: 0 6px; text-decoration: underline; text-underline-offset: 5px; }
.note { color: var(--quiet); font-size: 15px; }

/* ---------- hero ---------- */
.hero { padding-block: 24px 0; }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-block: 32px 72px; }
.hero h1 { font-size: clamp(46px, 7.4vw, 92px); line-height: .98; font-weight: 700; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--plum); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero h1 em { color: var(--nectar); } }
:root[data-theme="dark"] .hero h1 em { color: var(--nectar); }
.lede { font-size: clamp(19px, 2vw, 22px); color: var(--quiet); margin-top: 22px; max-width: 34ch; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 30px; }
.hero .note { margin-top: 14px; }
.hero-in { grid-template-areas: "text pic" "notes pic"; row-gap: 0; }
.hero-text { grid-area: text; align-self: end; }
.hero-pic { grid-area: pic; min-width: 0; }
.hero-notes { grid-area: notes; align-self: start; }
.hero .watch { margin-top: 18px; font-size: 16px; }
.promo-loop { width: auto; max-width: 380px; max-height: calc(100vh - 160px); margin-inline: auto; height: auto; border-radius: 40px; display: block; background: #3B2240; }
@media (prefers-reduced-motion: reduce) { .promo-loop { display: none; } }
.stage { display: flex; justify-content: center; align-items: flex-end; gap: 0; position: relative; min-width: 0; }
.stage .phone + .phone { margin-left: -46px; transform: translateY(28px) rotate(3deg); z-index: 0; }
.stage .phone:first-child { z-index: 1; transform: rotate(-2deg); }

/* ---------- the box band: Plum with the Nectarine lid on top ---------- */
.box { position: relative; background: var(--plum); color: var(--wheat); margin-top: 26px; overflow-x: clip; }
.box::before { content: ""; position: absolute; left: -12px; right: -12px; top: -26px; height: 44px; border-radius: 8px;
  background: linear-gradient(var(--nectar) 0 76%, var(--lip) 82% 100%);
  box-shadow: 0 3px 3px rgba(var(--shade), .30), 0 10px 18px rgba(var(--shade), .28); transform: rotate(-.7deg); transform-origin: left; }
.box a { color: var(--nectar); }

/* ---------- sections ---------- */
.band { padding-block: 88px; }
.band + .band { border-top: 1px solid var(--line); }
.box .band + .band { border-top-color: rgba(246, 243, 232, .14); }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--quiet); margin-bottom: 14px; }
.box .kicker { color: rgba(246, 243, 232, .7); }
h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.04; font-weight: 700; }
.big { font-size: clamp(19px, 1.9vw, 21px); color: var(--quiet); margin-top: 18px; max-width: 46ch; }
.box .big { color: rgba(246, 243, 232, .8); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split > * { min-width: 0; }
.split.flip > :first-child { order: 2; }

/* three moves */
.moves { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.move { background: rgba(246, 243, 232, .07); border-radius: 22px; padding: 26px 24px 28px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.move .glyph { width: 48px; height: 48px; border-radius: 14px; background: rgba(246, 243, 232, .10); display: grid; place-items: center; margin-bottom: 6px; }
.move .glyph svg { width: 26px; height: 26px; }
.move h3 { font-size: 24px; font-weight: 700; }
.move p { color: rgba(246, 243, 232, .78); font-size: 17px; }

/* lists with a lid-colored marker */
.points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.points li { padding-left: 26px; position: relative; font-size: 17px; color: var(--quiet); max-width: 48ch; }
.points li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 5px; border-radius: 2px; background: var(--nectar); box-shadow: 0 2px 0 var(--lip); transform: rotate(-12deg); }
.points b { color: var(--ink); font-weight: 600; display: block; }

/* the comes-back timeline */
.days { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.day { flex: 1 1 120px; border-radius: 16px; background: var(--card); padding: 14px 16px; min-width: 0; }
.day small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--quiet); }
.day strong { display: block; font-size: 30px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.day span { display: block; font-size: 14px; color: var(--quiet); }
.day.on { background: var(--nectar); color: #2A1E2E; }
.day.on small, .day.on span { color: #5A4A3C; }

/* private facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 40px; }
.facts div { border-top: 2px solid var(--nectar); padding-top: 14px; min-width: 0; }
.facts b { display: block; font-size: 18px; margin-bottom: 4px; }
.facts p { color: var(--quiet); font-size: 16px; }

/* the end */
.end { text-align: left; padding-block: 96px 120px; }
.end h2 { font-size: clamp(40px, 6vw, 72px); }
.end .ctas { margin-top: 28px; }

/* ---------- footer ---------- */
.foot { padding-block: 34px 48px; font-size: 15px; color: var(--quiet); }
.box + .foot, .box .foot { color: rgba(246, 243, 232, .72); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.foot a { color: inherit; }
.foot .made { margin-left: auto; }

/* ---------- document pages: support, privacy, beta ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 24px var(--gut-r) 80px var(--gut); }
.doc h1 { font-size: clamp(40px, 6vw, 60px); font-weight: 700; line-height: 1.02; }
.doc .sub { font-size: 20px; color: var(--quiet); margin-top: 14px; max-width: 44ch; }
.doc h2 { font-size: 26px; line-height: 1.2; margin: 52px 0 12px; letter-spacing: -.015em; }
.doc h3 { font-size: 19px; margin: 28px 0 6px; letter-spacing: -.01em; }
.doc p, .doc li { color: var(--quiet); font-size: 17px; }
.doc p + p { margin-top: 12px; }
.doc strong, .doc b { color: var(--ink); font-weight: 600; }
.doc ul { padding-left: 0; list-style: none; margin: 10px 0 0; display: grid; gap: 14px; }
.doc ul li { padding-left: 22px; position: relative; }
.doc ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 4px; border-radius: 2px; background: var(--nectar); transform: rotate(-12deg); }
.doc .date { font-size: 15px; color: var(--quiet); margin-top: 10px; }
.doc .summary { background: var(--card); border-radius: 20px; padding: 22px 24px; margin-top: 30px; }
.doc .summary p { color: var(--ink); font-size: 18px; }
.contact { background: var(--card); border-radius: 20px; padding: 24px; margin-top: 30px; }
.contact p { color: var(--ink); }
.contact .btn { margin-top: 16px; }
details { border-top: 1px solid var(--line); padding: 16px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; font-size: 18px; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--quiet); font-weight: 400; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin-top: 10px; }
.doc-top .bar { border-bottom: 1px solid var(--line); }
.doc-top { padding: 0; }

/* beta form */
fieldset { border: 0; padding: 0; margin: 40px 0 0; min-width: 0; }
legend { font-size: 20px; font-weight: 700; color: var(--ink); padding: 0; margin-bottom: 10px; letter-spacing: -.01em; }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; font-weight: 600; color: var(--ink); font-size: 16px; }
.hint { font-weight: 400; color: var(--quiet); font-size: 15px; }
.hint.small { font-size: 14px; margin-top: 14px; }
.opt { font-weight: 400; color: var(--quiet); font-size: 15px; }
input:not([type=radio]):not([type=checkbox]), textarea { width: 100%; font: 400 17px/1.4 var(--sans); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px 0; }
input:not([type=radio]):not([type=checkbox]):focus, textarea:focus { outline: none; border-bottom-color: var(--accent); }
textarea { resize: vertical; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 10px 16px; border-radius: 12px; background: var(--card); color: var(--ink); font-size: 16px; font-weight: 500; }
.chips input:checked + span { background: var(--plum); color: var(--wheat); }
.chips input:focus-visible + span { outline: 3px solid var(--nectar); outline-offset: 2px; }
.err { color: #B4442E; font-size: 15px; margin-top: 22px; min-height: 1em; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form .btn { margin-top: 8px; }

/* ---------- the phone, drawn ---------- */
.phone { --w: 280px; width: var(--w); max-width: 100%; aspect-ratio: 280 / 588; border-radius: 46px; padding: 9px; background: #3A2941; box-shadow: 0 2px 0 rgba(255,255,255,.08) inset, 0 30px 60px rgba(var(--shade), .30), 0 8px 18px rgba(var(--shade), .18); flex: none; }
.scr { position: relative; width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: var(--sg, #F6F3E8); color: var(--st, #2A1E2E); font-size: 12px; }
.scr .sb { position: absolute; top: 10px; left: 24px; right: 24px; display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; z-index: 3; }
.scr .isl { position: absolute; top: 8px; left: 50%; width: 76px; height: 22px; margin-left: -38px; border-radius: 12px; background: #1A1020; z-index: 4; }
.scr.dark { --sg: #3B2240; --st: #F1E9D8; }
/* Today: a photo post */
.pic { position: absolute; inset: 0 0 74px; }
.pic.sun { background: radial-gradient(120% 70% at 30% 18%, #FFE2B8 0, #E9A35C 26%, #9C5B4B 52%, #3E2840 82%); }
.pic.green { background: radial-gradient(110% 70% at 70% 20%, #F2E6C4 0, #9DAF7E 28%, #4F6A4A 55%, #26202E 88%); }
.pic.sea { background: radial-gradient(120% 70% at 50% 15%, #FCE9D6 0, #B8C7C9 28%, #6D7F93 55%, #2E2338 88%); }
.pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(26,16,32,.28), transparent 22%, transparent 45%, rgba(26,16,32,.55)); }
.plus { position: absolute; top: 34px; left: 18px; font-size: 12px; font-weight: 600; color: #F6F3E8; z-index: 3; }
.scr .sb.on-pic { color: #F6F3E8; }
.glass { position: absolute; left: 12px; right: 12px; bottom: 124px; padding: 12px 14px 13px; border-radius: 16px; background: rgba(26,16,32,.38); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); color: #F6F3E8; border: 1px solid rgba(246,243,232,.14); z-index: 2; }
.glass small { display: block; font-size: 10px; opacity: .72; margin-bottom: 3px; }
.glass b { display: block; font-size: 15px; line-height: 1.2; letter-spacing: -.01em; }
.glass span { display: block; font-size: 10.5px; opacity: .78; margin-top: 4px; }
.why { position: absolute; left: 12px; bottom: 96px; z-index: 2; background: #F9C93A; color: #2A1E2E; font-size: 10.5px; font-weight: 600; padding: 4px 9px; border-radius: 8px; }
.sbox { position: absolute; left: 0; right: 0; bottom: 0; height: 86px; z-index: 2; }
.sbox .g { position: absolute; left: 0; right: 0; top: 13px; bottom: 0; background: rgba(86,57,95,.94); }
.sbox .l { position: absolute; left: -6px; right: -6px; top: 0; height: 34px; border-radius: 6px; background: linear-gradient(#F9C93A 0 76%, #D4A21E 82% 100%); box-shadow: 0 2px 2px rgba(26,16,32,.35), 0 7px 10px rgba(26,16,32,.3); transform: rotate(-.7deg); transform-origin: left; }
.sbox .n { position: absolute; right: 20px; top: 52px; font-size: 13px; color: rgba(246,243,232,.8); font-variant-numeric: tabular-nums; }
/* the Shoebox list */
.lst { position: absolute; inset: 0; padding: 40px 16px 0; }
.lst .hd { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 600; }
.lst h4 { margin: 10px 0 8px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; display: flex; justify-content: space-between; align-items: baseline; }
.lst h4 span { font-size: 11px; font-weight: 600; text-decoration: underline; }
.lst .sr { border-bottom: 1px solid rgba(106,96,112,.35); padding: 6px 0; font-size: 11.5px; opacity: .6; }
.lst .lb { font-size: 9.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; opacity: .6; margin: 16px 0 4px; }
.lst .row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(106,96,112,.18); }
.lst .dt { width: 30px; text-align: center; line-height: 1; flex: none; }
.lst .dt small { display: block; font-size: 8px; font-weight: 700; letter-spacing: .06em; opacity: .65; }
.lst .dt strong { display: block; font-size: 16px; font-weight: 600; margin-top: 1px; }
.lst .th { width: 30px; height: 30px; border-radius: 7px; flex: none; }
.lst .tx { min-width: 0; }
.lst .tx b { display: block; font-weight: 500; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lst .tx span { display: block; font-size: 10px; opacity: .6; }
/* Keep something */
.frm { position: absolute; inset: 0; padding: 40px 18px 0; }
.frm .hd { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; }
.frm .hd span:first-child { font-weight: 400; }
.frm h4 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin: 22px 0 18px; }
.frm .f { margin-top: 14px; font-size: 10.5px; opacity: .7; }
.frm .f div { border-top: 1px solid rgba(106,96,112,.4); margin-top: 5px; padding-top: 7px; font-size: 13px; opacity: 1; }
.frm .add { display: flex; gap: 12px; margin-top: 10px; font-size: 11.5px; font-weight: 600; }
.frm .add span { text-decoration: underline; }
.frm .add span:first-child { text-decoration: none; font-weight: 400; opacity: .6; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-in { grid-template-columns: 1fr; gap: 40px; padding-block: 16px 64px; }
  .hero-in { grid-template-areas: "text" "pic" "notes"; row-gap: 28px; }
  .split, .split.flip { grid-template-columns: 1fr; gap: 40px; }
  .split.flip > :first-child { order: 0; }
  .moves { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .band { padding-block: 64px; }
  .phone { --w: 250px; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .facts { grid-template-columns: 1fr; }
  .stage .phone + .phone { display: none; }
  .phone { --w: 240px; margin: 0 auto; }
  .foot .made { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* real screenshots in the phone frame */
.phone.shot { aspect-ratio: 1206 / 2622; padding: 8px; }
.phone.shot .scr { background: var(--night); }
.phone.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
