/* VOICE: Attuent - warm, grounded, spacious; one question at a time, nothing hurried
   IDEA: a phone-sized ritual; the artwork fills the screen and the words rest on it
   PICTURE: the Attuent spiral blossom (peach, rose and gold around a warm light) on the welcome screen; then the chosen fractal card, full screen
   COLOUR and TYPE (from v0.19): blush #fcece5, warm brown #795740 from the wordmark, deep cocoa, clay, peach and gold from the logo; Tenor Sans for the wordmark and questions, DM Sans for text
   LAYOUT: full window everywhere; phones get the phone layout, larger screens a centred column with the image open around it;
           thin progress line, back and settings icons, content, action at the bottom (centred with the content on desktops) */

@font-face{font-family:"Tenor Sans";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/tenor-sans-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"DM Sans";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/dm-sans-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"DM Sans";font-style:normal;font-weight:500;font-display:swap;src:url(fonts/dm-sans-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:"DM Sans";font-style:normal;font-weight:600;font-display:swap;src:url(fonts/dm-sans-latin-600-normal.woff2) format("woff2")}

:root{
  color-scheme:light;
  --bg:#fcece5; --surface:#fffaf6; --sunk:#f3e3da; --line:#ead8cd;
  --ink:#35261d; --mute:#77675c; --deep:#4a3428; --teal:#a26a4f; --teal-soft:#f7e5da; --peach:#e9cfbb; --warn:#9a3b2b;
  --display:"Tenor Sans","Optima","Candara",system-ui,sans-serif;
  --safe-t:env(safe-area-inset-top,0px); --safe-b:env(safe-area-inset-bottom,0px);
  --shadow:0 1px 2px #4a342810,0 12px 32px -18px #4a342840;
}
*{box-sizing:border-box;min-width:0}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;height:100%}
body{margin:0;height:100%;background:var(--bg);color:var(--ink);font:17px/1.5 "DM Sans",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;overflow:hidden;overscroll-behavior:none}
[hidden]{display:none !important}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
button{font:inherit;color:inherit;cursor:pointer}
:focus-visible{outline:3px solid var(--teal);outline-offset:3px}

/* the app fills the window on every screen; larger screens get a centred column (see v0.14 at the end) */
.app{position:relative;width:100%;height:100vh;height:100dvh;overflow:hidden;background:var(--bg)}
main{position:absolute;inset:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;outline:none}

/* progress line, back, settings */
.pbar{position:absolute;top:var(--safe-t);left:0;right:0;height:3px;z-index:30;background:#4a342814}
.pbar i{display:block;height:100%;width:0;background:var(--teal);transition:width .5s ease}
.on-image .pbar{background:#ffffff33}
.on-image .pbar i{background:#fff}
.top{position:absolute;top:calc(var(--safe-t) + 8px);left:10px;right:10px;z-index:25;display:flex;justify-content:space-between;pointer-events:none}
.icon-btn{pointer-events:auto;width:44px;height:44px;border-radius:50%;border:0;background:transparent;color:var(--ink);display:grid;place-items:center;padding:0}
.icon-btn svg{width:24px;height:24px}
.icon-btn.invis{visibility:hidden}
.on-image .icon-btn{color:#fff;background:#0000002e;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.menu{position:absolute;top:calc(var(--safe-t) + 58px);right:12px;z-index:40;background:var(--surface);border-radius:18px;box-shadow:0 18px 50px -12px #4a342866,0 0 0 1px #4a342812;padding:6px;min-width:250px;max-width:calc(100% - 24px)}
.menu button{display:flex;width:100%;align-items:center;min-height:48px;padding:10px 14px;border:0;background:none;border-radius:12px;text-align:left;font-size:16px}
.menu button:hover,.menu button:focus-visible{background:var(--sunk);outline:none}
.menu .danger{color:var(--warn)}

/* plain pages */
.page{min-height:100%;display:flex;flex-direction:column;padding:calc(var(--safe-t) + 64px) 22px calc(var(--safe-b) + 22px)}
.page .push{margin-top:auto}
h1{font-family:var(--display);font-size:clamp(24px,6.6vw,28px);line-height:1.24;font-weight:400;margin:0 0 10px;letter-spacing:.005em;text-wrap:balance;outline:none}
.lead{color:var(--mute);margin:0 0 18px}
.note{font-size:14px;color:var(--mute);margin:10px 0 0}
.err{color:var(--warn);font-size:15px;margin:10px 0 0}
.status{background:var(--teal-soft);color:#5d3f2f;border-radius:14px;padding:12px 14px;margin:0 0 16px;font-size:15px}

/* buttons */
.btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:54px;padding:12px 22px;border-radius:999px;border:1px solid transparent;font-weight:600;font-size:17px;line-height:1.2;text-align:center;text-decoration:none}
.btn.primary{background:var(--deep);color:#fbf3ee}
.btn.secondary{background:var(--surface);border-color:var(--line);color:var(--ink)}
.btn.quiet{background:transparent;color:var(--teal);min-height:48px}
.btn.light{background:#fff;color:var(--ink)}
.btn.ghost-light{background:#ffffff26;color:#fff;border-color:#ffffff66;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.btn:disabled,.btn[aria-disabled=true]{opacity:.42;cursor:default}
.actions{display:grid;gap:10px;margin-top:22px}
.link{background:none;border:0;padding:10px 0;min-height:44px;color:var(--teal);font-weight:500;font-size:16px}

/* fields */
label.lbl{display:block;font-weight:600;font-size:15px;margin:0 0 6px}
textarea,input[type=text]{width:100%;font:inherit;font-size:17px;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:12px 14px;line-height:1.5}
textarea{min-height:140px;resize:none}
textarea.short{min-height:84px}
textarea:focus,input[type=text]:focus{outline:2px solid var(--teal);outline-offset:1px;border-color:var(--teal)}
.count{font-size:14px;color:var(--mute);margin-top:6px;min-height:0}
.count:empty{display:none}
.count.warn{color:var(--warn)}
.field{margin-top:14px}

/* welcome */
.welcome{min-height:100%;display:grid;place-content:center;text-align:center;gap:14px;cursor:pointer;padding:24px}
.welcome .word{font-family:var(--display);font-size:clamp(40px,12vw,48px);font-weight:400;letter-spacing:.01em;margin:-6px 0 0;color:var(--ink)}
.welcome .mark{width:min(70%,260px);justify-self:center;display:block}
.welcome .tag{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px 0;color:#5b4a3f;font-size:10.5px;letter-spacing:.24em;text-transform:uppercase;margin:4px 0 0;opacity:0;transform:translateY(4px);transition:opacity 1.1s ease .35s,transform 1.1s ease .35s}
.welcome .tag span+span::before{content:"";display:inline-block;width:16px;height:1px;background:#b8957f;margin:0 10px 0 6px;vertical-align:middle}
.welcome.show .tag{opacity:1;transform:none}
.welcome .btn{width:auto;justify-self:center;margin-top:18px;padding-inline:34px}

/* full-screen artwork */
.full{position:absolute;inset:0;background:#35261d;overflow:hidden}
.full img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;user-select:none;-webkit-user-drag:none}
.full.breathe img{animation:breathe 10s ease-in-out infinite}
@keyframes breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.035)}}
.fail{position:absolute;inset:0;display:grid;place-items:center;padding:32px;text-align:center;color:#ffffffcc;background:radial-gradient(120% 80% at 50% 80%,#c18f7c,#43302a 70%);font-size:15px}
.shade-top{position:absolute;left:0;right:0;top:0;height:46%;background:linear-gradient(#000000a6,#00000059 45%,#0000);pointer-events:none}
.shade-bottom{position:absolute;left:0;right:0;bottom:0;height:42%;background:linear-gradient(#0000,#0000006b 50%,#000000b3);pointer-events:none}
.over-text{position:absolute;left:24px;right:24px;top:calc(var(--safe-t) + 66px);color:#fff;font-family:var(--display);font-size:clamp(23px,6.4vw,27px);line-height:1.28;font-weight:400;text-shadow:0 1px 18px #0009;margin:0;text-wrap:balance;outline:none}
.over-bottom{position:absolute;left:18px;right:18px;bottom:calc(var(--safe-b) + 20px);display:grid;gap:10px}
.counter{color:#ffffffd9;text-align:center;font-size:14px;text-shadow:0 1px 8px #0008;margin:0}
.hint{color:#fff;text-align:center;font-size:14px;margin:0;text-shadow:0 1px 8px #0008;transition:opacity .6s}

/* image deck */
.deck{position:absolute;inset:0;overflow:hidden;touch-action:pan-y;outline:none}
.deck:focus-visible{outline:3px solid #fff;outline-offset:-6px}
.track{display:flex;height:100%;transition:transform .38s cubic-bezier(.2,.7,.2,1);will-change:transform}
.track.drag{transition:none}
.slide{position:relative;flex:0 0 100%;height:100%;background:#35261d}
.slide img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;user-select:none;-webkit-user-drag:none;pointer-events:none}
.nav-btn{position:absolute;top:50%;transform:translateY(-50%);z-index:5;width:44px;height:44px;border-radius:50%;border:0;background:#00000040;color:#fff;display:grid;place-items:center;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.nav-btn svg{width:22px;height:22px}
.nav-btn.prev{left:10px}.nav-btn.next{right:10px}
.nav-btn:disabled{opacity:0;pointer-events:none}
@media (hover:none) and (pointer:coarse){.nav-btn{opacity:0}.nav-btn:focus-visible{opacity:1}}

/* bottom sheet on artwork */
.sheet{position:absolute;left:0;right:0;bottom:0;max-height:calc(100% - var(--safe-t) - 70px);overflow-y:auto;background:#fcf5f0f2;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border-radius:28px 28px 0 0;padding:22px 20px calc(var(--safe-b) + 28px);box-shadow:0 -10px 40px -20px #0008}
.sheet h1{font-size:clamp(21px,5.8vw,24px)}
.sheet .lead{font-size:16px;margin-bottom:14px}
.locked{position:absolute;left:24px;right:24px;top:calc(var(--safe-t) + 22%);text-align:center;color:#fff;font-family:var(--display);font-size:clamp(30px,9vw,40px);line-height:1.2;font-weight:400;text-shadow:0 2px 26px #000b;margin:0;overflow-wrap:anywhere}
.timeline{height:3px;border-radius:3px;background:var(--line);overflow:hidden;margin:4px 0 14px}
.timeline i{display:block;height:100%;width:0;background:var(--teal)}
.done-msg{font-size:22px;margin:0 0 4px}

/* body + chips */
.body-wrap{display:grid;grid-template-columns:minmax(0,104px) minmax(0,1fr);gap:14px;align-items:start;margin-top:2px}
.body-svg{width:100%;height:auto}
.body-svg .rg{fill:#f3e3da;stroke:#d6c2ba;stroke-width:1.4;cursor:pointer;transition:fill .2s}
.body-svg .rg.on{fill:#ddb9a4;stroke:var(--teal)}
.body-svg.whole .rg{fill:#f1dccf}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{min-height:44px;padding:9px 14px;border-radius:999px;border:1px solid var(--line);background:var(--surface);font-size:15px;line-height:1.2;color:var(--ink);text-align:left}
.chip[aria-pressed=true]{background:var(--teal-soft);border-color:var(--teal);color:#6b4836;font-weight:600}
.chip[aria-pressed=true]::before{content:"\2713\00a0"}
.group-title{font-weight:600;font-size:15px;margin:22px 0 8px}

/* feedback */
.scale{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.opt{position:relative}
.opt input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.opt span{display:flex;align-items:center;justify-content:center;min-height:52px;border:1px solid var(--line);border-radius:14px;background:var(--surface);font-size:17px;font-weight:500}
.opt input:checked+span{background:var(--deep);border-color:var(--deep);color:#fbf3ee}
.opt input:focus-visible+span{outline:3px solid var(--teal);outline-offset:2px}
fieldset{border:0;margin:0;padding:0}
legend{padding:0;font-weight:600;font-size:16px;margin:0 0 10px}

/* closing */
.closing h1{margin-top:8px}
.done-check{color:var(--teal)}

/* dialogs */
dialog.dlg{border:0;padding:0;border-radius:26px;width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 32px);background:var(--bg);color:var(--ink);box-shadow:0 30px 80px -20px #4a342880}
dialog.dlg.wide{width:min(900px,calc(100vw - 24px))}
dialog::backdrop{background:#4a342870}
.dlg-in{padding:22px 20px 20px;overflow:auto;max-height:calc(100dvh - 32px)}
.dlg h2{font-family:var(--display);font-size:24px;line-height:1.25;font-weight:400;margin:0 0 8px;outline:none}
.dlg h3{font-size:17px;margin:0 0 4px}
.offer{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:16px;margin-top:14px}
.offer p{margin:4px 0 10px;color:var(--mute);font-size:15px}
.offer dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 12px;margin:0 0 12px;font-size:15px}
.offer dt{color:var(--mute)}
.offer dd{margin:0}
.empty{background:var(--surface);border:1px dashed var(--line);border-radius:20px;padding:16px;margin-top:14px;color:var(--mute)}
.privacy h3{font-size:16px;margin:18px 0 4px}
.privacy p{font-size:15px;color:#45382f}
.inbox table{width:100%;border-collapse:collapse;font-size:14px}
.inbox th,.inbox td{text-align:left;padding:8px 6px;border-bottom:1px solid var(--line);vertical-align:top}
.inbox td.n{text-align:right;white-space:nowrap}
.inbox .scroll{overflow-x:auto;margin-top:12px}
.stats{display:flex;flex-wrap:wrap;gap:8px 18px;font-size:15px;margin:8px 0}
.row-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.row-actions .btn{width:auto;min-height:44px;font-size:15px;padding:8px 16px}
.noscript{padding:24px;text-align:center}

@media (max-width:350px){
  .page{padding-left:16px;padding-right:16px}
  .body-wrap{grid-template-columns:minmax(0,86px) minmax(0,1fr);gap:10px}
  .scale{gap:6px}
}
@media (prefers-reduced-motion:reduce){*{transition:none !important;animation:none !important}.welcome .tag{opacity:1;transform:none}}
.fbform{display:flex;flex-direction:column;flex:1}
.over-text,.counter,.hint{pointer-events:none}

/* v0.3: welcome fade, closing feedback card, help page, share sheet, music link */
.welcome{transition:opacity .6s ease}
.welcome.out{opacity:0}
.fbcard{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:16px;margin:4px 0 0;display:grid;gap:10px}
.fbcard legend{font-size:16px;margin-bottom:10px}
.fbcard .note,.fbcard .err{margin:0}
.rate{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--bg)}
.rate .opt span{min-height:44px;border:0;border-radius:0;border-left:1px solid var(--line);background:transparent;font-size:16px}
.rate .opt:first-child span{border-left:0}
.rate .opt input:checked+span{background:var(--deep);color:#fbf3ee}
.rate .opt input:focus-visible+span{outline:3px solid var(--teal);outline-offset:-3px}
.rate-ends{display:flex;justify-content:space-between;font-size:13px;color:var(--mute);margin-top:6px}
textarea.fbtext{min-height:76px}
.closing .actions{margin-top:14px}
.more .h2{font-family:var(--display);font-size:19px;font-weight:400;margin:8px 0 10px}
.steps{margin:0;padding:0;list-style:none;counter-reset:s;display:grid;gap:8px}
.steps li{counter-increment:s;position:relative;padding:2px 0 2px 38px;line-height:1.45}
.steps li::before{content:counter(s);position:absolute;left:0;top:0;width:26px;height:26px;border-radius:50%;background:var(--teal-soft);color:#6b4836;font-weight:600;font-size:14px;display:grid;place-items:center}
.core{margin:18px 0 0;padding:14px 16px;border-left:3px solid var(--teal);background:var(--surface);border-radius:4px 14px 14px 4px;color:#45382f}
.inline-link{color:var(--teal)}
.share-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-top:12px}
.share-row input{font-size:15px;padding:10px 12px;color:var(--mute)}
.share-row .btn{width:auto;min-height:48px;padding:10px 18px}
.socials{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0 12px}
.socials .btn{min-height:48px;font-size:16px}
.btn.music{gap:10px;font-weight:500;font-size:16px}
.btn.music svg{width:20px;height:20px;flex:none}
.app:not(.on-image)::before{content:"";position:absolute;top:0;left:0;right:0;height:calc(var(--safe-t) + 58px);background:linear-gradient(var(--bg) 72%,#fcece500);z-index:20;pointer-events:none}

/* v0.5: after an image is chosen, every screen sits on it as frosted glass */
.backdrop{position:absolute;inset:0;z-index:0;background:#35261d;overflow:hidden}
.backdrop img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.backdrop::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#1d1410b8 0%,#1d14105c 34%,#1d141052 60%,#1d1410c2 100%)}
.backdrop.breathe img{animation:breathe 10s ease-in-out infinite}
main{z-index:1}
.glassy main{color:#fff;scrollbar-color:#ffffff40 transparent}
.glassy::before{content:"";position:absolute;top:0;left:0;right:0;height:calc(var(--safe-t) + 58px);background:linear-gradient(#1d1410a6 55%,#1d141000);z-index:20;pointer-events:none}
.glassy h1,.glassy .h2{color:#fff;text-shadow:0 1px 18px #0008}
.glassy .lead,.glassy .note,.glassy .count{color:#ffffffd1}
.glassy .page>.lead{text-shadow:0 1px 12px #0009}
.glass{background:#2d201961;-webkit-backdrop-filter:blur(18px) saturate(1.15);backdrop-filter:blur(18px) saturate(1.15);border:1px solid #ffffff3d;border-radius:26px;color:#fff;box-shadow:0 24px 50px -32px #000c}
.glass.pad{padding:16px;margin-top:12px}
.glassy .sheet{background:#2d20196b;-webkit-backdrop-filter:blur(20px) saturate(1.15);backdrop-filter:blur(20px) saturate(1.15);border:1px solid #ffffff3d;border-bottom:0;color:#fff;box-shadow:0 -20px 50px -30px #000c}
.glassy .btn.primary{background:#fbf3eef2;color:#4a3428}
.glassy .btn.secondary{background:#ffffff1f;border-color:#ffffff5c;color:#fff;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.glassy .btn.quiet,.glassy .link,.glassy .inline-link{color:#fff}
.glassy :focus-visible{outline-color:#fff}
.glassy textarea,.glassy input[type=text]{background:#ffffff17;border-color:#ffffff52;color:#fff}
.glassy textarea::placeholder,.glassy input::placeholder{color:#ffffffa8}
.glassy textarea:focus,.glassy input[type=text]:focus{outline-color:#fff;border-color:#fff}
.glassy label.lbl,.glassy legend,.glassy .group-title{color:#fff}
.group-title.first{margin-top:0}
.glassy .chip{background:#ffffff17;border-color:#ffffff5c;color:#fff}
.glassy .chip[aria-pressed=true]{background:#fbf3eef2;border-color:#fbf3ee;color:#4a3428}
.glassy .body-svg .rg{fill:#ffffff1f;stroke:#ffffff8c}
.glassy .body-svg .rg.on{fill:#f5cdb9e6;stroke:#fff}
.glassy .body-svg.whole .rg{fill:#ffffff4d}
.glassy .fbcard{border-radius:26px}
.glassy .rate{background:#ffffff12;border-color:#ffffff52}
.glassy .rate .opt span{color:#fff;border-left-color:#ffffff38}
.glassy .rate .opt input:checked+span{background:#fbf3ee;color:#4a3428}
.glassy .rate-ends{color:#ffffffb8}
.glassy .status{color:#fff;border-radius:18px;padding:14px 16px}
.glassy .err{color:#ffd3c4}
.glassy .timeline{background:#ffffff38}
.glassy .timeline i{background:#fff}
.glassy .steps li::before{background:#ffffff2e;color:#fff}
.glassy .core{background:#ffffff14;border-left:2px solid #ffffffa0;color:#ffffffe6;margin-top:16px}
.glassy .music{border-color:#ffffff73}
.welcome .tag.sentence{display:block;font-family:var(--display);font-size:clamp(17px,4.8vw,19px);letter-spacing:.01em;text-transform:none;color:#6c584b;margin-top:2px;text-wrap:balance}

/* v0.7: welcome on the brand background with the logo file; step 1 on the same background */
.welcome{position:relative;min-height:100%;display:flex;flex-direction:column;align-items:center;padding:0 24px calc(var(--safe-b) + 28px);gap:0;place-content:normal}
.welcome .full{z-index:0}
.welcome .haze{position:absolute;left:50%;top:calc(var(--safe-t) + 15%);width:150%;aspect-ratio:1.45;transform:translate(-50%,-22%);background:radial-gradient(closest-side,#fff7f0f2 0%,#fff3eacc 42%,#fdeee455 70%,#fdeee400 100%);pointer-events:none;z-index:1}
.welcome .logo{position:relative;z-index:2;width:min(92%,380px);height:auto;margin-top:calc(var(--safe-t) + 17vh);mix-blend-mode:multiply;opacity:0;transform:translateY(6px);transition:opacity 1.2s ease .2s,transform 1.2s ease .2s}
.welcome.show .logo{opacity:1;transform:none}
.welcome .btn{position:relative;z-index:2;margin-top:auto;width:auto;min-width:180px;padding-inline:40px}
@media (prefers-reduced-motion:reduce){.welcome .logo{opacity:1;transform:none}}

/* v0.8: no automatic fade on the welcome screen; more air under questions, notes and panels */
.welcome .logo{opacity:1;transform:none;transition:none}
.page h1{margin-bottom:16px}
.actions.push{padding-top:26px}
.over-bottom .counter{text-wrap:balance;max-width:30ch;justify-self:center;margin-bottom:12px}

/* v0.9: 0-10 intensity scale, trauma warning in step 1, image origin in step 5 */
.rate.r11{grid-template-columns:repeat(11,minmax(0,1fr))}
.rate.r11 .opt span{font-size:15px}
.page>.intensity{margin-top:22px}
#f-situation{min-height:112px}
.warnbox{margin-top:16px;padding:14px 16px;border-radius:20px;background:#3e2419b8;border:1px solid #f3b9a399;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);color:#fff;box-shadow:0 20px 44px -30px #000c}
.warnbox p{margin:6px 0 0;font-size:15px;line-height:1.45}
.warnbox .warn-title{margin:0;font-weight:600;font-size:16px;color:#ffd9c9}
.warnbox .urgent{font-size:14px;color:#ffffffc7}
.before-note{margin:8px 0 0}
.before-note:empty{margin:0}
.origin{margin:0 0 4px;padding:12px 14px;border-radius:18px;background:#ffffff14;border:1px solid #ffffff38}
.origin p{margin:0;font-size:15px;line-height:1.45}
.origin em{font-style:normal;font-family:var(--display);font-size:17px;letter-spacing:.01em}
.origin .origin-note{margin-top:4px;color:#ffffffd1}
@media (max-width:350px){.fbcard{padding:12px}.rate.r11 .opt span{font-size:14px}}
@media (max-height:720px){.locked{top:calc(var(--safe-t) + 60px);font-size:clamp(26px,8vw,34px)}}

/* v0.10: come-back dialog */
.remind .offer h3{margin-bottom:8px}
.remind .socials{grid-template-columns:minmax(0,1fr);margin:4px 0 8px}

/* v0.12: Attuent logo, tagline as text under it */
.welcome .logo{width:min(84%,340px)}
.welcome .tagline{position:relative;z-index:2;margin:10px 0 0;font-family:var(--display);font-size:clamp(17px,4.8vw,19px);letter-spacing:.01em;color:#7a5841;text-align:center;text-wrap:balance}

/* v0.13: closing message on its own screen; options on the next */
.closing .lead+.lead{margin-top:-2px}
.page.closing:not(.after) .actions{margin-top:auto}

/* v0.15.3: the boxes on the feeling and pause screens float with room below on every screen, instead of sitting on the bottom edge */
.sheet{left:12px;right:12px;bottom:calc(var(--safe-b) + 16px);border-radius:28px;padding:22px 20px 24px;max-height:calc(100% - var(--safe-t) - var(--safe-b) - 84px);box-shadow:0 18px 50px -24px #000a}
.glassy .sheet{border-bottom:1px solid #ffffff3d;box-shadow:0 20px 60px -30px #000c}
@media (min-width:600px){.sheet{left:50%;right:auto;width:min(600px,calc(100% - 48px));bottom:calc(var(--safe-b) + clamp(24px,6vh,64px));padding:26px 26px 28px}}

/* v0.16: Begin in Claude on the first screen; guided Take me deeper (the claude.ai version) */
.welcome .btn.to-claude{margin-top:10px;background:#fffaf6b8;color:#4a3428;border-color:#4a342840;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.welcome .claude-note{position:relative;z-index:2;margin:10px 0 0;max-width:32ch;font-size:13.5px;line-height:1.4;font-weight:500;color:#fff;text-align:center;text-wrap:balance;text-shadow:0 1px 3px #4a3428cc,0 0 14px #4a342899}
.dlg .claude-line{margin:4px 0 0;color:var(--mute)}
.dlg .actions a.btn{text-decoration:none}
.dp-choose,.dp-rate{display:grid;gap:12px}
.dp-choose .chips{display:flex;flex-wrap:wrap;gap:8px}
.dp-choose .note{margin:0}
.dp-choose .actions .btn,.dp-rate .actions .btn,.dp-end .btn{width:auto;padding-inline:26px;justify-self:start}
.dp-pause .dp-words{font-family:var(--display);font-size:22px;line-height:1.38;margin:0 0 16px;text-wrap:pretty}
@media (min-width:960px){.dp-pause .dp-words{font-size:26px}}

/* no browser back swipe from a sideways trackpad gesture (the image deck uses it) */
html,body{overscroll-behavior-x:none}

/* v0.14: full window on larger screens (no phone frame), wide images in landscape, reflection with Claude */
.top-l{display:flex;align-items:center;gap:8px}
.brandmark{display:none;font-family:var(--display);font-size:19px;letter-spacing:.02em;color:var(--ink);pointer-events:none}
.on-image .brandmark{color:#fff;text-shadow:0 1px 12px #0007}

/* reflection card on the "Before you go" screen */
#rfSlot:not(:empty){margin-bottom:12px}
.rfcard .h2{font-family:var(--display);font-weight:400;font-size:21px;line-height:1.3;margin:0 0 8px;text-shadow:none}
.rfcard .rf-text{margin:0 0 14px;font-size:16px;color:#ffffffe6}
.rfcard .note{margin-top:10px}
.rfcard .keep-text{margin:0 0 14px}

/* reflection screen: a conversation on the chosen image */
.reflect{position:absolute;inset:0;display:flex;flex-direction:column}
.rf-log{flex:1;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#ffffff40 transparent;padding:calc(var(--safe-t) + 66px) 22px 18px;display:flex;flex-direction:column;outline:none}
.rf-log::before,.rf-log::after{content:"";flex:1 0 0}
.rf-col{display:flex;flex-direction:column;gap:18px}
.rf-col h1{margin:0}
.rf-col .intensity{margin-top:4px}
.rf-col .actions{margin-top:4px}
.rf-notice{margin:0;font-size:13.5px;line-height:1.4;color:#ffffffde;text-shadow:0 1px 10px #000a}
.rf-g{font-family:var(--display);font-size:21px;line-height:1.38;letter-spacing:.005em;color:#fff;text-shadow:0 1px 18px #0009;max-width:34ch;text-wrap:pretty}
.rf-g p{margin:0 0 .55em}
.rf-g p:last-child{margin:0}
.rf-me{align-self:flex-end;max-width:85%;background:#ffffff1f;border:1px solid #ffffff4d;border-radius:20px 20px 6px 20px;padding:10px 14px;color:#fff;font-size:16px;line-height:1.45;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);overflow-wrap:anywhere}
.rf-me p{margin:0}
.rf-me p+p{margin-top:.5em}
.dots{display:inline-flex;gap:7px;padding:10px 0}
.dots i{width:7px;height:7px;border-radius:50%;background:#fff;opacity:.3;animation:dot 1.3s infinite ease-in-out}
.dots i:nth-child(2){animation-delay:.18s}
.dots i:nth-child(3){animation-delay:.36s}
@keyframes dot{0%,80%,100%{opacity:.25;transform:none}40%{opacity:1;transform:translateY(-3px)}}
.rf-err p{margin:0 0 10px;color:#ffd3c4;font-size:15px}
.rf-err .btn,.rf-col .actions .btn{width:auto;padding-inline:26px;justify-self:start}
.keep{padding:18px 18px 14px}
.keep-label{margin:0 0 6px;font-size:12px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:#ffffffc2}
.keep-text{font-family:var(--display);font-size:22px;line-height:1.35;margin:0;-webkit-user-select:text;user-select:text;overflow-wrap:anywhere}
.keep-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px}
.keep-row .btn{min-height:48px;font-size:15px;padding:8px 12px}
.keep .note{margin:8px 0 0}
.keep .note:empty{display:none}
.rf-composer{position:relative;z-index:2;display:grid;gap:2px;padding:8px 14px calc(var(--safe-b) + 8px)}
.rf-row{display:flex;gap:8px;align-items:flex-end}
.rf-composer textarea{flex:1;min-height:50px;max-height:160px;resize:none;border-radius:25px;padding:12px 18px;font-size:16px;line-height:1.4;background:#2d2019b8;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}
.rf-send{flex:none;width:50px;height:50px;border-radius:50%;border:0;background:#fbf3ee;color:#4a3428;display:grid;place-items:center;padding:0}
.rf-send svg{width:22px;height:22px}
.rf-finish{justify-self:center;min-height:40px;padding:6px 8px;font-size:15px;text-shadow:0 1px 10px #0009}
.rf-last{text-align:center;margin:0 0 6px;text-shadow:0 1px 10px #0009}
.keep-opt{display:flex;gap:10px;align-items:center;font-size:15px;margin:2px 0 6px;cursor:pointer}
.keep-opt input{width:20px;height:20px;margin:0;accent-color:var(--teal);flex:none}
.keep-quote{margin:0 0 12px;padding:6px 12px;border-left:2px solid var(--teal);font-family:var(--display);font-size:16px;line-height:1.4;color:var(--ink)}

/* tablets and small windows: one centred column; the image stays full window */
@media (min-width:600px){
  .page{padding-left:max(22px,calc((100% - 560px) / 2));padding-right:max(22px,calc((100% - 560px) / 2))}
  .over-text{left:50%;right:auto;transform:translateX(-50%);width:min(600px,calc(100% - 48px));text-align:center}
  .over-bottom{left:50%;right:auto;transform:translateX(-50%);width:min(460px,calc(100% - 36px))}
  .sheet{left:50%;right:auto;transform:translateX(-50%);width:min(600px,calc(100% - 24px))}
  .locked{left:50%;right:auto;transform:translateX(-50%);width:min(680px,calc(100% - 48px))}
  .welcome .haze{width:min(150%,1100px)}
  .rf-log{padding-left:max(22px,calc((100% - 600px) / 2));padding-right:max(22px,calc((100% - 600px) / 2))}
  .rf-composer{width:min(600px,100%);margin-inline:auto;padding-bottom:calc(var(--safe-b) + clamp(14px,3vh,36px))}
}

/* desktops: the image fills the window, the words sit in a centred column on a soft shadow */
@media (min-width:960px){
  .top{left:max(2.5vw,20px);right:max(2.5vw,20px);top:calc(var(--safe-t) + 16px)}
  .brandmark{display:block}
  .menu{right:max(2.5vw,20px);top:calc(var(--safe-t) + 68px)}
  .app::before,.glassy::before{height:calc(var(--safe-t) + 80px)}
  .backdrop::after{background:radial-gradient(ellipse 36% 64% at 50% 54%,#1d1410b8 0%,#1d14106b 55%,#1d141000 100%),linear-gradient(180deg,#1d1410a6 0%,#1d141000 22%,#1d141000 66%,#1d1410cc 100%)}
  .page{padding:calc(var(--safe-t) + 100px) calc((100% - min(640px,52vw)) / 2) calc(var(--safe-b) + clamp(28px,6vh,72px));justify-content:center}
  .page .push,.page.closing:not(.after) .actions{margin-top:0}
  .actions.push{padding-top:28px}
  .page h1{font-size:clamp(28px,2.2vw,34px)}
  .page>.lead{font-size:18px}
  .over-text{top:calc(var(--safe-t) + 96px);width:min(780px,70vw);font-size:clamp(27px,2.2vw,36px)}
  .over-bottom{width:min(440px,40vw);bottom:calc(var(--safe-b) + clamp(24px,5vh,56px))}
  .sheet{width:min(640px,52vw);bottom:calc(var(--safe-b) + clamp(40px,9vh,120px));max-height:calc(100% - 220px);border-radius:28px;padding:28px 28px 30px}
  .glassy .sheet{border-bottom:1px solid #ffffff3d}
  .locked{top:clamp(90px,15vh,170px);width:min(900px,80vw);font-size:clamp(40px,4.2vw,64px)}
  .nav-btn{width:56px;height:56px}
  .nav-btn.prev{left:max(2.5vw,16px)}
  .nav-btn.next{right:max(2.5vw,16px)}
  .welcome .logo{margin-top:calc(var(--safe-t) + 14vh)}
  .welcome .btn{margin-bottom:0}
  .welcome > :last-child{margin-bottom:clamp(8px,4vh,48px)}
  .rf-log{padding:calc(var(--safe-t) + 100px) calc((100% - min(680px,52vw)) / 2) 22px}
  .rf-composer{width:min(680px,52vw);padding-left:0;padding-right:0;padding-bottom:calc(var(--safe-b) + clamp(28px,6vh,72px))}
  .rf-g{font-size:23px}
  .keep-text{font-size:24px}
}
@media (min-width:960px){
  .page.after .actions.push{grid-template-columns:repeat(3,minmax(0,1fr));padding-top:16px}
  .page.after .actions .btn{min-height:58px;font-size:15px;padding:8px 14px}
}
/* the welcome image (silk) is light: Begin gets the brand colour */
.welcome .btn.ghost-light{background:#4a3428d9;border-color:#4a3428;color:#fbf3ee}
@media (prefers-reduced-motion:reduce){.dots i{animation:none;opacity:.7}}

/* v0.19: Attuent. The logo is a transparent WebP (made from the artwork on #fcece5), so it no longer needs multiply */
.welcome .logo{mix-blend-mode:normal;width:min(78%,320px)}
.welcome .tagline{color:#5d3f2f}
