/* =====================================================================
   Smart Calendar — pages-new.css
   Subpage styles (download, privacy, terms, contact, login, signup).
   Builds on the tokens / nav / footer / buttons defined in home-new.css,
   which must be loaded FIRST.
   ===================================================================== */

/* utilities the existing page scripts (login.js / signup.js / contact.js) rely on */
.display-none { display: none !important; }

/* clear the fixed nav */
.page-main { padding-top: 72px; }

/* ---------- generic page hero ---------- */
.page-hero { padding: clamp(64px,9vw,120px) 0 clamp(8px,2vw,24px); text-align: center; position: relative; }
.page-hero::before { content:""; position:absolute; width:360px; height:360px; border-radius:50%; background:var(--lavender); filter:blur(80px); top:-40px; left:50%; transform:translateX(-50%); opacity:.45; z-index:-1; }
.page-hero .eyebrow { display:block; margin-bottom:16px; }
.page-hero h1 { font-family:var(--serif); font-weight:400; font-optical-sizing:auto; font-size:clamp(40px,6.5vw,76px); line-height:1.0; letter-spacing:-.022em; }
.page-hero .sub { margin:18px auto 0; color:var(--ink-soft); font-size:clamp(17px,2vw,20px); max-width:58ch; }

/* ---------- legal prose (privacy / terms) ---------- */
.prose { max-width: 760px; margin: 0 auto; padding: clamp(28px,4vw,48px) 0 clamp(64px,9vw,120px); }
.prose .updated { color:var(--muted); font-size:14px; margin:-8px 0 32px; }
.prose h2 { font-family:var(--serif); font-weight:450; font-size:clamp(21px,2.6vw,27px); letter-spacing:-.01em; margin:40px 0 12px; color:var(--ink); }
.prose h2:first-of-type { margin-top:0; }
.prose p { color:var(--ink-soft); margin-bottom:16px; line-height:1.72; }
.prose ul { margin:0 0 18px; padding:0; display:flex; flex-direction:column; gap:9px; }
.prose li { position:relative; padding-left:26px; color:var(--ink-soft); line-height:1.6; }
.prose li::before { content:""; position:absolute; left:6px; top:11px; width:6px; height:6px; border-radius:50%; background:var(--violet); }
.prose a { color:var(--violet-deep); text-decoration:underline; text-underline-offset:2px; }
.prose strong { color:var(--ink); font-weight:700; }
.prose .legal-caps { font-size:14px; color:var(--muted); }

/* ---------- auth (login / signup) ---------- */
.auth-wrap { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:104px 20px 56px; position:relative; }
.auth-wrap::before { content:""; position:absolute; width:460px; height:460px; border-radius:50%; background:var(--lavender); filter:blur(90px); top:2%; left:50%; transform:translateX(-50%); opacity:.55; z-index:-1; }
.auth-wrap::after { content:""; position:absolute; width:320px; height:320px; border-radius:50%; background:#FFE6C2; filter:blur(90px); bottom:4%; left:18%; opacity:.4; z-index:-1; }
.auth-brand { position:absolute; top:26px; left:50%; transform:translateX(-50%); }
.auth-card { width:100%; max-width:430px; background:var(--paper); border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--shadow-md); padding:clamp(28px,4vw,42px); }
.auth-card h1 { font-family:var(--serif); font-weight:400; font-size:clamp(28px,4vw,38px); letter-spacing:-.02em; margin-bottom:8px; }
.auth-card .auth-sub { color:var(--muted); font-size:15px; margin-bottom:26px; }
.auth-google { width:100%; justify-content:center; }
.or-bar { display:flex; align-items:center; gap:14px; margin:22px 0; color:var(--muted); font-size:13px; }
.or-bar::before, .or-bar::after { content:""; height:1px; background:var(--line); flex:1; }
#appleidwrap { margin-top:12px; width:100%; position:relative; z-index:1; }
/* hide the default Apple SDK button */
#appleid-signin { display: none !important; }
/* custom Apple button to match Google button styling */
.btn-apple { background: #000; color: #fff; border-color: #000; }
.btn-apple:hover { background: #1a1a1a; border-color: #1a1a1a; transform: translateY(-1px); }
.btn-apple svg { width: 20px; height: 20px; fill: currentColor; }
.field { margin-bottom:13px; }
.field input { width:100%; font-family:var(--sans); font-size:15px; color:var(--ink); background:var(--cream); border:1.5px solid var(--line); border-radius:12px; padding:14px 15px; transition:border-color .15s ease, box-shadow .15s ease; }
.field input::placeholder { color:#a8a293; }
.field input:focus { outline:none; border-color:var(--violet); box-shadow:0 0 0 3px rgba(124,92,255,.15); }
.auth-submit { width:100%; justify-content:center; border:0; margin-top:8px; font-size:16px; }
.auth-error { background:#FDE7E4; color:#B23B2E; border:1px solid #F6C9C2; border-radius:10px; padding:11px 14px; font-size:14px; margin-bottom:14px; }
.auth-forgot { display:block; text-align:right; color:var(--muted); font-size:13px; margin:2px 0 4px; }
.auth-forgot:hover { color:var(--violet-deep); text-decoration:underline; }
.auth-switch { margin-top:20px; text-align:center; font-size:14.5px; color:var(--ink-soft); }
.auth-switch a { color:var(--violet-deep); font-weight:600; }
.auth-switch a:hover { text-decoration:underline; }
.auth-legal { margin-top:18px; font-size:12.5px; color:var(--muted); text-align:center; line-height:1.5; }
.auth-legal a { color:var(--muted); text-decoration:underline; }

/* ---------- contact ---------- */
.contact-grid { display:grid; grid-template-columns:1.05fr .95fr; gap:clamp(28px,5vw,56px); align-items:start; max-width:1000px; margin:0 auto; padding:clamp(20px,3vw,40px) 0 clamp(64px,9vw,120px); }
.contact-card { background:var(--paper); border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--shadow-sm); padding:clamp(24px,3vw,34px); }
.contact-card h2 { font-family:var(--serif); font-weight:450; font-size:26px; margin-bottom:14px; }
.contact-card .field { margin-bottom:14px; }
.contact-card textarea { width:100%; min-height:150px; resize:vertical; font-family:var(--sans); font-size:15px; color:var(--ink); background:var(--cream); border:1.5px solid var(--line); border-radius:12px; padding:14px 15px; }
.contact-card textarea:focus { outline:none; border-color:var(--violet); box-shadow:0 0 0 3px rgba(124,92,255,.15); }
.contact-note { font-size:12.5px; color:var(--muted); margin:-6px 0 12px; }
.contact-side .disc { display:flex; gap:14px; align-items:flex-start; background:var(--lavender); border:1px solid var(--lavender-2); border-radius:var(--r-md); padding:18px 20px; margin-bottom:18px; }
.contact-side .disc i { color:#5865F2; font-size:22px; margin-top:2px; }
.contact-side .disc b { color:var(--ink); }
.contact-side .disc p { color:#4b3f73; font-size:14.5px; margin-top:3px; }
.contact-side .disc a { color:var(--violet-deep); font-weight:600; }
.contact-side iframe { width:100%; border:0; border-radius:var(--r-md); background:var(--cream-2); }
.contact-thanks { background:var(--green); color:#fff; border-radius:var(--r-lg); padding:26px 28px; display:flex; flex-direction:column; gap:16px; align-items:flex-start; max-width:560px; margin:0 auto; }
.contact-thanks .h3 { color:#fff; }

/* ---------- download ---------- */
.dl-grid { display:grid; grid-template-columns:1fr 1fr; gap:clamp(32px,6vw,72px); align-items:center; max-width:1080px; margin:0 auto; padding:clamp(20px,3vw,40px) 0 clamp(64px,9vw,120px); }
.dl-copy h1 { font-family:var(--serif); font-weight:400; font-size:clamp(36px,5.5vw,60px); line-height:1.02; letter-spacing:-.02em; margin-bottom:18px; }
.dl-copy .lead { margin-bottom:24px; }
.dl-feats { display:flex; flex-direction:column; gap:12px; margin-bottom:28px; }
.dl-feats li { display:flex; gap:12px; align-items:flex-start; color:var(--ink-soft); font-size:16px; }
.dl-feats .tick { flex:none; width:22px; height:22px; border-radius:50%; background:var(--lavender); color:var(--violet-deep); display:grid; place-items:center; font-size:12px; font-weight:800; margin-top:1px; }
.appstore svg { height:54px; width:auto; }
.dl-shot { background:var(--cream-2); border:1px solid var(--line); border-radius:var(--r-lg); padding:clamp(28px,4vw,52px); display:flex; justify-content:center; box-shadow:var(--shadow-sm); }
.dl-shot img { max-width:290px; width:100%; height:auto; border-radius:26px; box-shadow:var(--shadow-md); }

/* ---------- auth (login / signup) ---------- */
.auth-container { display:flex; align-items:center; justify-content:center; min-height:calc(100vh - 72px - 300px); padding:clamp(32px,5vw,64px) 0; }
.auth-card { background: var(--paper); border:1px solid var(--line); border-radius: var(--r-lg); padding: clamp(32px,4vw,48px); box-shadow: var(--shadow-md); width:100%; max-width:440px; }
.auth-card h1 { font-family: var(--serif); font-size: clamp(28px,4vw,40px); line-height:1.1; margin-bottom:8px; }
.auth-sub { font-size:17px; color: var(--ink-soft); margin-bottom:28px; }
.auth-divider { position:relative; text-align:center; margin:24px 0; }
.auth-divider::before { content:""; position:absolute; top:50%; left:0; right:0; height:1px; background: var(--line); }
.auth-divider span { position:relative; background: var(--paper); padding:0 12px; font-size:14px; color: var(--muted); font-weight:600; }
.auth-error { background: #FFF4F4; border:1px solid #FF6B6B; color:#D63636; border-radius: var(--r-sm); padding:12px 14px; margin-bottom:18px; font-size:14px; font-weight:500; }
.auth-submit { width:100%; justify-content:center; }
.auth-switch { text-align:center; font-size:15px; margin-top:18px; color: var(--ink-soft); }
.auth-switch a { color: var(--violet-deep); font-weight:600; text-decoration:underline; text-underline-offset:2px; }
.auth-link { font-size:14px; color: var(--violet-deep); font-weight:500; text-decoration:underline; text-underline-offset:2px; }
.auth-legal { font-size:13px; color: var(--muted); margin-top:24px; text-align:center; line-height:1.5; }
.auth-legal a { color: var(--violet-deep); text-decoration:underline; text-underline-offset:2px; }

@media (max-width:820px){
  .contact-grid, .dl-grid { grid-template-columns:1fr; }
  .dl-shot { order:-1; }
}
