/* Widget planner (iPhone Home / Lock Screen / Android) and Siri demo. Shared by the landing and the guide. */

/* ---------- landing section ---------- */

.wsiri { padding-block: 70px; }
.wsiri-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.wsiri-head h2 { font-size: clamp(30px, 3.8vw, 44px); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 16px; }
.wsiri-head p { color: var(--text-muted); font-size: 16px; margin: 0 auto 12px; max-width: 62ch; }
.wsiri-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 8px; }
.wsiri-links a { font-weight: 600; font-size: 15px; text-decoration: none; }
.wsiri-links a:hover { text-decoration: underline; }
.wsiri-stack { display: flex; flex-direction: column; gap: 28px; }

.wcard {
  position: relative; overflow: hidden; min-width: 0; padding: 28px; border-radius: 28px;
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-card);
}
.wcard::before {
  content: ''; position: absolute; inset: -40% -10% auto auto; width: 60%; height: 80%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(77,163,255,0.16), transparent); pointer-events: none;
}
.wcard > * { position: relative; }
.wcard-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 20px; }
.wcard-title { font: 600 17px 'Sora', sans-serif; }
.wcard-tag { font: 500 11px 'IBM Plex Mono', monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }

/* ---------- widget planner ---------- */

.wdemo { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 44px; }
.wdemo-stage { position: relative; flex: 0 0 auto; padding: 12px; }
.wdemo-glow {
  position: absolute; inset: 6% -6% -2%; border-radius: 50%; filter: blur(52px); opacity: 0.6;
  background: radial-gradient(closest-side, #ff9fb0, #e8c77a 60%, transparent); transition: opacity 0.6s ease;
}
.wdemo.m-android-home .wdemo-glow { background: radial-gradient(closest-side, #6fa8ff, #355c9a 65%, transparent); }
.wdemo.m-ios-lock .wdemo-glow { background: radial-gradient(closest-side, #8f7bff, #3c7fa5 60%, transparent); }

.wdemo-phone {
  position: relative; z-index: 1; width: 290px; max-width: 100%; aspect-ratio: 9 / 19.5; overflow: hidden;
  border-radius: 42px; border: 6px solid #0a0d14; background: #000; color: #fff;
  box-shadow: 0 0 0 1.5px #2a3550, 0 30px 60px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.06);
}
.wdemo-wall { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; }
.wdemo-wall.w-ios { background: linear-gradient(160deg, #f6b8b8, #e8c77a 55%, #3c7fa5); }
.wdemo-wall.w-and { background: linear-gradient(160deg, #bfd7f5, #8fb4e3 55%, #355c9a); }
.wdemo-wall.w-lock { background: radial-gradient(120% 70% at 85% 60%, #b79bff 0%, transparent 55%), linear-gradient(170deg, #0f8f8a, #1b2f6b 70%, #2a1a4a); }
.wdemo.m-ios-home .w-ios, .wdemo.m-android-home .w-and, .wdemo.m-ios-lock .w-lock { opacity: 1; }

.wdemo-cut {
  position: absolute; z-index: 3; top: 10px; left: 50%; width: 76px; height: 22px; margin-left: -38px;
  border-radius: 99px; background: #000; transition: width 0.4s ease, margin 0.4s ease, height 0.4s ease;
}
.wdemo.m-android-home .wdemo-cut { width: 14px; height: 14px; margin-left: -7px; top: 12px; }
.wdemo-layer { position: absolute; inset: 0; transition: opacity 0.45s ease, transform 0.45s ease; }
.wdemo.m-ios-lock .wdemo-homelayer, .wdemo:not(.m-ios-lock) .wdemo-locklayer { opacity: 0; pointer-events: none; }
.wdemo.m-ios-lock .wdemo-homelayer { transform: scale(0.97); }
.wdemo:not(.m-ios-lock) .wdemo-locklayer { transform: scale(1.03); }

.wdemo-status { position: absolute; top: 12px; left: 24px; right: 22px; display: flex; justify-content: space-between; align-items: center; font: 600 12px 'IBM Plex Sans', sans-serif; text-shadow: 0 1px 2px rgba(0,0,0,0.25); }
.wdemo-bat { width: 22px; height: 11px; border-radius: 3.5px; background: #fff; opacity: 0.92; position: relative; }
.wdemo-bat::after { content: ''; position: absolute; right: -3px; top: 3.5px; width: 2px; height: 4px; border-radius: 0 1px 1px 0; background: #fff; }
.wdemo-list { position: absolute; inset: 46px 12px 30px; display: flex; flex-direction: column; justify-content: flex-start; }
.wdemo-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; padding: 0 28px; text-align: center; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.wdemo.is-empty .wdemo-empty { opacity: 0.9; }

.wd-item {
  display: grid; grid-template-rows: 0fr; opacity: 0; transform: translateY(16px) scale(0.9);
  transition: grid-template-rows 0.5s cubic-bezier(.16,.84,.44,1), opacity 0.4s ease, transform 0.5s cubic-bezier(.16,.84,.44,1);
}
.wd-item.on { grid-template-rows: 1fr; opacity: 1; transform: none; }
.wd-item.leaving { transform: translateX(-26px) scale(0.92); }
.wd-item > .wd-inner { min-height: 0; overflow: hidden; padding-bottom: 8px; }
.wd-item img { display: block; width: 100%; height: auto; transition: opacity 0.2s ease; }
.wd-item.swap img { opacity: 0; }

.wdemo-locklayer { padding: 52px 14px 0; text-align: center; }
.wdemo-date { margin: 0; font: 500 14px 'IBM Plex Sans', sans-serif; opacity: 0.92; }
.wdemo-clock { margin: -2px 0 14px; font: 600 68px/1.05 'Sora', sans-serif; letter-spacing: -0.03em; text-shadow: 0 2px 14px rgba(0,0,0,0.18); }
.wdemo-lockrow { display: flex; justify-content: center; min-height: 56px; }
.wdemo-lockbtns { position: absolute; left: 34px; right: 34px; bottom: 40px; display: flex; justify-content: space-between; }
.wdemo-lockbtns i { width: 44px; height: 44px; border-radius: 50%; background: rgba(20,24,34,0.4); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.12); }

.lk-item {
  display: grid; grid-template-columns: 0fr; opacity: 0; transform: scale(0.7);
  transition: grid-template-columns 0.45s cubic-bezier(.16,.84,.44,1), opacity 0.35s ease, transform 0.45s cubic-bezier(.16,.84,.44,1);
}
.lk-item.on { grid-template-columns: 1fr; opacity: 1; transform: none; }
.lk-item.leaving { transform: scale(0.7); }
.lk-item > .wd-inner { min-width: 0; overflow: hidden; padding: 0 0 0 8px; }
.lk-item:first-child > .wd-inner { padding-left: 0; }
.lk { height: 54px; border-radius: 14px; background: rgba(20,24,34,0.42); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.1); text-align: left; }
.lk-rect { width: 117px; padding: 7px 9px; display: flex; flex-direction: column; justify-content: center; gap: 1px; }
.lk-rect b { font: 600 9.5px 'IBM Plex Sans', sans-serif; white-space: nowrap; }
.lk-rect strong { font: 800 18px/1.1 'Sora', sans-serif; white-space: nowrap; }
.lk-rect .lk-bar { display: block; height: 3px; margin-top: 3px; border-radius: 2px; background: rgba(255,255,255,0.28); }
.lk-rect .lk-bar i { display: block; height: 100%; border-radius: 2px; background: #fff; }
.lk-circle { position: relative; width: 54px; }
.lk-circle svg.ring { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); transform: rotate(-90deg); }
.lk-circle .r-bg { fill: none; stroke: rgba(255,255,255,0.28); stroke-width: 3.2; }
.lk-circle .r-fg { fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; }
.lk-circle .lk-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.lk-circle .lk-in svg { width: 12px; height: 12px; fill: currentColor; }
.lk-circle .lk-in b { font: 800 11px/1 'Sora', sans-serif; letter-spacing: -0.02em; }

.wdemo-bar { position: absolute; z-index: 3; bottom: 8px; left: 50%; width: 96px; height: 4px; margin-left: -48px; border-radius: 3px; background: rgba(255,255,255,0.88); }
.wdemo.m-android-home .wdemo-bar { width: 64px; margin-left: -32px; }

.wdemo-side { flex: 1 1 260px; min-width: 0; max-width: 420px; display: flex; flex-direction: column; gap: 14px; }
.wdemo-tabs { display: inline-flex; flex-wrap: wrap; align-self: flex-start; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg-raised); border: 1px solid var(--border); }
.wdemo-tab { font: 500 13px 'IBM Plex Sans', sans-serif; cursor: pointer; color: var(--text-muted); background: transparent; border: 0; padding: 7px 14px; border-radius: 999px; transition: background 0.3s ease, color 0.3s ease; }
.wdemo-tab[aria-pressed="true"] { color: var(--text); background: var(--accent-dim); box-shadow: inset 0 0 0 1px var(--accent); }
.wdemo-hint { margin: 0; min-height: 44px; font-size: 14px; color: var(--text-muted); }
.wdemo-count { display: flex; align-items: center; gap: 10px; font: 500 12px 'IBM Plex Mono', monospace; color: var(--text-faint); transition: opacity 0.3s ease; }
.wdemo.m-ios-lock .wdemo-count { opacity: 0; }
.wdemo-dots { display: inline-flex; gap: 5px; }
.wdemo-dots i { width: 22px; height: 6px; border-radius: 3px; background: var(--border-strong); transition: background 0.4s ease; }
.wdemo-dots i.on { background: var(--accent); }
.wdemo-chips { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; min-height: 118px; }
.wdemo-chip {
  font: 500 13px 'IBM Plex Sans', sans-serif; color: var(--text-muted); cursor: pointer;
  padding: 7px 13px; border-radius: 999px; background: transparent; border: 1px solid var(--border-strong);
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.wdemo-chip::before { content: '○ '; }
.wdemo-chip[aria-pressed="true"] { color: var(--accent); background: var(--accent-dim); border-color: var(--accent); }
.wdemo-chip[aria-pressed="true"]::before { content: '✓ '; }
.wdemo-chip.is-next-out { border-style: dashed; }
.wdemo-chip:focus-visible, .wdemo-tab:focus-visible, .sdemo-cmd:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wdemo-detail { padding: 14px 16px; border-radius: 16px; background: var(--bg-raised); border: 1px solid var(--border); }
.wdemo-detail strong { display: block; font: 600 15px 'Sora', sans-serif; margin-bottom: 4px; }
.wdemo-detail span { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.wdemo-caption { margin: 0; min-height: 60px; font-size: 13px; color: var(--text-faint); }

/* ---------- Siri demo ---------- */

.sdemo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px 40px; align-items: center; }
@media (max-width: 860px) { .sdemo { grid-template-columns: minmax(0, 1fr); } }
.sdemo-intro { display: flex; flex-direction: column; gap: 14px; }
.sdemo-intro p { margin: 0; font-size: 15px; color: var(--text-muted); max-width: 46ch; }
.sdemo-cmds { display: flex; flex-wrap: wrap; gap: 8px; }
.sdemo-cmd {
  font: 500 13px 'IBM Plex Sans', sans-serif; color: var(--text-muted); cursor: pointer; text-align: left;
  padding: 8px 14px; border-radius: 999px; background: transparent; border: 1px solid var(--border-strong);
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.sdemo-cmd[aria-pressed="true"] { color: var(--accent); background: var(--accent-dim); border-color: var(--accent); }
.sdemo-fine { font-size: 12.5px; color: var(--text-faint); }
.sdemo-screen {
  position: relative; overflow: hidden; min-height: 280px; padding: 18px; border-radius: 26px;
  background: linear-gradient(180deg, #0f1a2e, #0a1220); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 14px;
}
.sdemo-screen::after {
  content: ''; position: absolute; left: -10%; right: -10%; bottom: -46px; height: 70px; border-radius: 50%; filter: blur(28px); opacity: 0.5; pointer-events: none;
  background: linear-gradient(90deg, #4DA3FF, #b57bff, #ff7ab0, #ffb86b, #4DA3FF); background-size: 200% 100%; animation: sirisweep 6s linear infinite;
}
@keyframes sirisweep { to { background-position: 200% 0; } }
.sdemo-top, .sdemo-convo { position: relative; z-index: 1; }
.sdemo-top { display: flex; align-items: center; gap: 10px; font: 600 14px 'Sora', sans-serif; }
.sdemo-orb { width: 26px; height: 26px; border-radius: 50%; background: conic-gradient(from 0deg, #4DA3FF, #b57bff, #ff7ab0, #ffb86b, #4DA3FF); animation: sirispin 5s linear infinite; box-shadow: 0 0 18px rgba(181,123,255,0.5); }
@keyframes sirispin { to { transform: rotate(360deg); } }
.sdemo-user { align-self: flex-end; max-width: 88%; padding: 10px 14px; border-radius: 18px 18px 4px 18px; background: var(--accent-dim); border: 1px solid var(--accent); font-size: 14px; animation: sdemoin 0.45s ease both; }
.sdemo-typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 12px 14px; border-radius: 18px 18px 18px 4px; background: rgba(255,255,255,0.07); animation: sdemoin 0.3s ease both; }
.sdemo-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); animation: sdemodot 1s ease-in-out infinite; }
.sdemo-typing i:nth-child(2) { animation-delay: 0.15s; }
.sdemo-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes sdemodot { 0%, 80%, 100% { opacity: 0.3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.sdemo-answer { align-self: flex-start; width: 100%; display: flex; flex-direction: column; gap: 10px; animation: sdemoin 0.5s cubic-bezier(.16,.84,.44,1) both; }
.sdemo-spoken { margin: 0; font-size: 14px; color: var(--text); }
.sdemo-card { padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(8px); }
.sdemo-card-title { font: 600 18px 'Sora', sans-serif; letter-spacing: -0.01em; }
.sdemo-card-line { margin-top: 3px; font-size: 13px; color: var(--text-muted); }
.sdemo-badge { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 999px; font: 500 12px 'IBM Plex Mono', monospace; color: var(--gold); background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.3); }
@keyframes sdemoin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 600px) {
  .wcard { padding: 20px 16px; border-radius: 22px; }
  .wdemo { gap: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .wd-item, .lk-item, .wdemo-layer, .wdemo-wall, .wdemo-chip, .sdemo-cmd { transition: none; }
  .sdemo-orb, .sdemo-screen::after, .sdemo-typing i { animation: none; }
  .sdemo-user, .sdemo-typing, .sdemo-answer { animation: none; }
}

/* ---------- guide: Siri phrases per language ---------- */

.sph-hint { margin: 0 0 14px; font-size: 14px; color: var(--text-muted); }
.sph-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.sph-list { margin: 0; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.sph-row { display: grid; grid-template-columns: minmax(130px, 200px) minmax(0, 1fr); gap: 6px 20px; padding: 12px 16px; background: var(--card); }
.sph-row + .sph-row { border-top: 1px solid var(--border); }
.sph-row dt { font: 600 13px 'Sora', sans-serif; color: var(--text); }
.sph-row dd { margin: 0; }
.sph-row p { margin: 0; font-size: 14px; }
.sph-main { color: var(--text); }
.sph-alt { margin-top: 3px !important; color: var(--text-muted); font-size: 13px !important; }
.sph-footer { margin: 12px 0 0; font-size: 13px; color: var(--text-faint); }
@media (max-width: 600px) { .sph-row { grid-template-columns: minmax(0, 1fr); } }
