/* /apps/ (the apps Sozou builds and runs) and /apps/notaito/ (its first app). Built in .publish/apps-page.
   Everything is under .ap and prefixed ap-, so nothing here can reach another page. Type and card values follow the
   /demos/ page (h1/h2 sizes, the Cormorant italic accent, white hairline cards); Notaito's page uses Notaito's own
   colours (forest, young bamboo, washi paper) for its accent and buttons. */

.ap { --ap-accent: #264F8F; --ap-btn: var(--navy); --ap-btn-hover: #17377a; --ap-tint: var(--bg-2); --ap-tint-ink: var(--navy);
      --ap-forest: #1F3A2E; --ap-bamboo: #5FA37E; --ap-paper: #FBFAF4; --ap-line: #E2E9E5; padding-bottom: clamp(40px, 6vw, 80px); }
.ap-notaito { --ap-accent: #2E6B4C; --ap-btn: var(--ap-forest); --ap-btn-hover: #2C5140; --ap-tint: #E8F2EC; --ap-tint-ink: var(--ap-forest); }
.ap *, .ap *::before, .ap *::after { box-sizing: border-box; }
.ap-wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--pad); }
.ap :focus-visible { outline: 2px solid var(--spark); outline-offset: 3px; }
.ap svg { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ap a { color: inherit; }

/* headings and copy */
.ap h1, .ap h2, .ap h3 { margin: 0; font-family: var(--sans); font-weight: 500; color: var(--ink); text-wrap: balance; }
.ap h1 { font-size: clamp(2.3rem, 4.9vw, 3.78rem); line-height: 1.06; letter-spacing: -.055em; }
.ap h2 { font-size: clamp(1.75rem, 3.1vw, 2.4rem); line-height: 1.13; letter-spacing: -.05em; }
.ap h3 { font-size: 1.02rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; }
.ap h1 em, .ap h2 em { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.13em; line-height: 1;
                       letter-spacing: -.03em; color: var(--ap-accent); }
.ap-kicker { margin: 0 0 16px; font-size: .78rem; line-height: 1.65; letter-spacing: var(--ls); color: var(--ink-2);
             display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px; }
.ap-kicker a { text-decoration: none; color: var(--ink-3); }
.ap-kicker a:hover { color: var(--ink); text-decoration: underline; }
.ap-kicker span { color: var(--ink-3); }
.ap-lede { margin: 18px auto 0; max-width: 37rem; font-size: 1.04rem; line-height: 1.7; color: var(--ink-2); text-wrap: pretty; }
.ap-small { margin: 18px auto 0; max-width: 34rem; font-size: .8rem; line-height: 1.6; color: var(--ink-3); text-wrap: pretty; }
.ap-center { text-align: center; justify-content: center; }

/* hero */
.ap-hero { padding: clamp(52px, 7vw, 100px) var(--pad) clamp(24px, 3vw, 40px); text-align: center; }
.ap-hero-copy { display: flex; flex-direction: column; align-items: center; }
.ap-hero-copy .ap-app-icon { margin-bottom: 22px; }

/* buttons */
.ap-actions { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 28px; justify-content: center; }
.ap-btn { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 20px; border-radius: 100px;
          font-size: .92rem; font-weight: 600; text-decoration: none; border: 1px solid transparent; white-space: nowrap;
          transition: background var(--mid) var(--ease), border-color var(--mid) var(--ease), transform var(--mid) var(--ease); }
.ap .ap-btn-primary { background: var(--ap-btn); color: #fff; }
.ap .ap-btn-primary:hover { background: var(--ap-btn-hover); transform: translateY(-1px); }
.ap .ap-btn-quiet { background: var(--surface); color: var(--ink); border-color: var(--hair-2); }
.ap .ap-btn-quiet:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.ap-btn svg { font-size: 1.05em; }
.ap-signin { order: 3; display: block; flex-basis: 100%; margin-top: 4px; text-align: center; font-size: .84rem; color: var(--ink-3); }
.ap-signin a { color: var(--ink-2); }

/* the app icon (Notaito's own mark, as its Home Screen tile) */
.ap-app-icon { display: inline-grid; width: 72px; height: 72px; flex: none; border-radius: 18px; filter: drop-shadow(0 14px 22px rgba(31, 58, 46, .14)); }
.ap-app-icon svg { width: 100%; height: 100%; stroke: none; }
.ap-app-icon-lg { width: 88px; height: 88px; border-radius: 22px; }

/* the hub's app card */
.ap-list { max-width: 900px; margin-top: clamp(16px, 3vw, 32px); }
.ap-app { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px 28px; align-items: start; padding: clamp(22px, 3.4vw, 36px);
          background: var(--surface); border: 1px solid var(--hair); border-radius: 22px; box-shadow: 0 28px 60px -46px rgba(12, 36, 84, .45); }
.ap-app .ap-app-icon { width: 96px; height: 96px; border-radius: 24px; text-decoration: none; }
.ap-app-meta { margin: 2px 0 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: .78rem; color: var(--ink-3); letter-spacing: var(--ls); }
.ap-pill { padding: 2px 11px; border-radius: 100px; background: #E8F2EC; color: #1F3A2E; font-size: .72rem; font-weight: 600; letter-spacing: .02em; }
.ap-app h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); }
.ap-app h2 a { text-decoration: none; }
.ap-app h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.ap-app-line { margin: 6px 0 0; font-family: var(--display); font-style: italic; font-size: 1.35rem; line-height: 1.3; color: #2E6B4C; }
.ap-app-text { margin: 12px 0 0; max-width: 38rem; font-size: .96rem; line-height: 1.7; color: var(--ink-2); text-wrap: pretty; }
.ap-app .ap-actions { justify-content: flex-start; margin-top: 22px; }
.ap-app .ap-signin { text-align: left; margin-top: 2px; }
.ap-more { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 22px 0 0; padding: 18px; border: 1px dashed var(--hair-2);
           border-radius: 18px; font-size: .9rem; color: var(--ink-3); }

/* the tour */
.ap-tour { max-width: 1120px; }
.ap-video { margin: clamp(8px, 2vw, 20px) 0 0; }
.ap-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--ap-paper); border-radius: 18px;
                  border: 1px solid var(--ap-line); box-shadow: 0 40px 80px -56px rgba(31, 58, 46, .55); }
.ap-video figcaption { margin-top: 12px; text-align: center; font-size: .8rem; color: var(--ink-3); }

/* sections */
.ap-section { margin-top: clamp(64px, 9vw, 120px); }
.ap-section > h2 { text-align: center; margin-bottom: clamp(28px, 4vw, 44px); }
.ap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ap-card { padding: 22px 22px 24px; background: var(--surface); border: 1px solid var(--hair); border-radius: 16px; }
.ap-card > svg { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--ap-tint); color: var(--ap-tint-ink); margin-bottom: 16px; stroke-width: 1.7; }
.ap-card p { margin: 7px 0 0; font-size: .9rem; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }

.ap-promise { max-width: 860px; }
.ap-checks { list-style: none; margin: 0; padding: clamp(22px, 3.4vw, 34px); background: var(--ap-paper); border: 1px solid var(--ap-line); border-radius: 20px; display: grid; gap: 14px; }
.ap-checks li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; font-size: .98rem; line-height: 1.6; color: var(--ink); }
.ap-checks li > svg { width: 26px; height: 26px; padding: 6px; border-radius: 50%; background: #E8F2EC; color: #1F3A2E; stroke-width: 2.4; margin-top: -1px; }
.ap-checks a { color: #2E6B4C; text-underline-offset: 3px; white-space: nowrap; }

.ap-faq { max-width: 760px; }
.ap-faq details { border-bottom: 1px solid var(--hair); }
.ap-faq details:first-of-type { border-top: 1px solid var(--hair); }
.ap-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
                  padding: 18px 2px; font-size: 1rem; font-weight: 600; color: var(--ink); }
.ap-faq summary::-webkit-details-marker { display: none; }
.ap-faq summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; line-height: 1; color: var(--ink-3); transition: transform var(--mid) var(--ease); }
.ap-faq details[open] summary::after { transform: rotate(45deg); }
.ap-faq details p { margin: 0 0 20px; padding-right: 32px; font-size: .95rem; line-height: 1.7; color: var(--ink-2); text-wrap: pretty; }
.ap-faq details a { color: #2E6B4C; text-underline-offset: 3px; }

.ap-end { margin-top: clamp(64px, 9vw, 120px); text-align: center; display: flex; flex-direction: column; align-items: center; }
.ap-end h2 { margin-top: 20px; }
.ap-legal { margin: 26px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-size: .82rem; }
.ap-legal a { color: var(--ink-3); text-underline-offset: 3px; }
.ap-legal a:hover { color: var(--ink); }

.ap-built { margin-top: clamp(48px, 6vw, 80px); text-align: center; }
.ap-built p { margin: 0; font-size: .9rem; color: var(--ink-3); }
.ap-built a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }

@media (max-width: 980px) { .ap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .ap-grid { grid-template-columns: minmax(0, 1fr); }
  .ap-app { grid-template-columns: minmax(0, 1fr); }
  .ap-app .ap-app-icon { width: 72px; height: 72px; border-radius: 18px; }
  .ap-btn { white-space: normal; }
  .ap-checks a { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .ap-btn, .ap-faq summary::after { transition: none; } }
/* Free and Plus (Sozou 2, 20 Oct 2026: Notaito Plus is on sale) */
.ap .ap-plan-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;margin:22px 0 14px}
.ap .ap-plan{padding:22px 22px 16px;border:1px solid var(--ap-line,#dce7e0);border-radius:16px;background:#fff}
.ap .ap-plan-plus{border-color:#5fa37e;box-shadow:0 10px 30px rgba(31,58,46,.08)}
.ap .ap-plan h3{margin:0 0 6px;font-size:20px}
.ap .ap-price{margin:0;font-size:30px;font-weight:600;color:#1f3a2e}
.ap .ap-price span{font-size:15px;font-weight:400;color:#607c6c}
.ap .ap-price-alt{margin:2px 0 12px;color:#607c6c;font-size:14px}
