/* Amira Strong app: Poster style (design/STYLE.md). Square corners, flat full-bleed colour, numbers as heroes. */
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body { background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; }
#app { max-width: 480px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }
button { font: inherit; border: 0; border-radius: 0; cursor: pointer; }
.caps, h1, h2, .btn, .label { font-family: var(--font-display); text-transform: uppercase; font-weight: 800; letter-spacing: .01em; }
.label { font-size: 15px; font-weight: 600; letter-spacing: .08em; }
.amira { font-family: var(--font-body); font-size: 17px; line-height: 1.45; text-transform: none; }
.amira b { font-family: var(--font-display); text-transform: uppercase; font-size: 15px; letter-spacing: .08em; color: var(--terracotta); display: block; margin-bottom: 2px; }
.pad { padding: 24px; }
.btn { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 20px 24px; font-size: var(--cta-size); background: var(--cream); color: var(--ink); }
.btn.dark { background: var(--ink); color: var(--paper); }
.btn.terra { background: var(--terracotta); color: var(--paper); }
.btn:focus-visible, .opt:focus-visible { outline: 4px solid var(--ocher); outline-offset: -4px; }

/* welcome */
.hero { background: var(--terracotta); color: var(--paper); flex: 1; padding: 24px; display: flex; flex-direction: column; }
.hero .big { font-family: var(--font-display); font-weight: 900; font-size: clamp(160px, 52vw, 230px); line-height: .8; margin: 16px 0 8px; }
.hero .big sup { color: var(--cream); font-size: .45em; vertical-align: top; }
.hero h1 { font-size: 44px; line-height: .95; }
.guide { display: flex; background: var(--ink); color: var(--paper); }
.guide img { width: 96px; height: 96px; object-fit: cover; }
.guide .amira { padding: 14px 16px; }
.promise { padding: 18px 24px; }
.promise h2 { font-size: 30px; line-height: 1; }

/* onboarding */
.q { padding: 24px; flex: 1; }
.q h1 { font-size: 48px; line-height: .95; margin: 8px 0 20px; }
.opt { display: block; width: 100%; text-align: left; padding: 18px 20px; margin-bottom: 10px; background: var(--sand); color: var(--ink); font-size: 19px; }
.opt strong { font-family: var(--font-display); text-transform: uppercase; font-size: 26px; display: block; }
.opt[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* today */
.day { padding: 24px 24px 12px; display: flex; justify-content: space-between; align-items: end; border-bottom: 3px solid var(--ink); }
.day .dname { font-family: var(--font-display); font-weight: 900; font-size: 96px; line-height: .8; }
.session { background: var(--terracotta); color: var(--paper); padding: 24px; }
.session h2 { font-size: 52px; line-height: .9; margin: 6px 0; }
.session .time { font-family: var(--font-display); font-weight: 900; font-size: 110px; line-height: .85; color: var(--cream); font-variant-numeric: tabular-nums; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); margin: 16px 24px; border: 3px solid var(--ink); }
.week span { text-align: center; padding: 10px 0; font-family: var(--font-display); font-weight: 800; font-size: 20px; border-right: 1px solid var(--ink); }
.week span:last-child { border-right: 0; }
.week .done { background: var(--ink); color: var(--paper); }

/* player */
.player { background: var(--ink); color: var(--paper); flex: 1; display: flex; flex-direction: column; }
.ptop { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; }
.ptop button { background: none; color: var(--paper); border: 2px solid var(--paper); padding: 8px 12px; font-family: var(--font-display); font-size: 18px; text-transform: uppercase; }
.ptop .voice { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.pname { padding: 0 16px; }
.pname h1 { font-size: var(--exercise-size); line-height: .9; }
.pname p { color: var(--ecru); font-size: 17px; margin-top: 4px; }
.stage { position: relative; margin: 12px 16px 0; background: var(--paper); aspect-ratio: 1 / 1; max-height: 36dvh; overflow: hidden; }
/* absolute, so the square clip letterboxes inside a stage that max-height made wider than tall (feet were cut off) */
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.count { display: flex; align-items: baseline; justify-content: space-between; padding: 10px 16px 0; }
.count .n { font-family: var(--font-display); font-weight: 900; font-size: var(--counter-size); line-height: .85; color: var(--cream); font-variant-numeric: tabular-nums; }
.count.sec { justify-content: flex-start; gap: 10px; }
.count .of { font-family: var(--font-display); font-weight: 800; font-size: 56px; color: var(--olive-green); }
.phase { padding: 0 16px; font-family: var(--font-display); font-size: 28px; text-transform: uppercase; color: var(--cream); min-height: 34px; }
.pbar { display: flex; margin-top: auto; }
.pbar button { flex: 1; padding: 20px 0; font-family: var(--font-display); text-transform: uppercase; font-size: 26px; background: var(--terracotta); color: var(--paper); }
.pbar button + button { border-left: 2px solid var(--ink); }
.next { background: var(--paper); color: var(--ink); padding: 14px 16px; display: flex; justify-content: space-between; }
.next .label { color: var(--terracotta); display: block; }
.next .caps { font-size: 24px; }
.rest .count .n { color: var(--paper); }
.rest .stage { opacity: .55; }

/* done + footer */
.done-screen { background: var(--terracotta); color: var(--paper); flex: 1; padding: 24px; }
.done-screen h1 { font-size: 72px; line-height: .9; margin: 12px 0; }
.foot { font-size: 15px; color: var(--olive-green); padding: 16px 24px 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* in-app confirm sheet */
.sheet { position: fixed; inset: 0; background: rgba(37, 49, 34, .72); display: flex; align-items: flex-end; justify-content: center; z-index: 10; }
.sheet-box { width: 100%; max-width: 480px; background: var(--paper); color: var(--ink); }
.sheet-box h2 { font-size: 40px; line-height: .95; padding: 28px 24px 22px; }
.sheet-box .btn + .btn { border-top: 2px solid var(--ink); }
