:root {
  color-scheme: light;
  --ink: #17201a;
  --muted: #667068;
  --line: #dfe4df;
  --soft: #f4f6f4;
  --paper: #ffffff;
  --green: #4d6b57;
  --green-dark: #3f5948;
  --green-soft: #e9f0eb;
  --error: #b23a3a;
  --shadow: 0 22px 65px rgba(32, 48, 38, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.6; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
.container { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }

.site-header { position: relative; z-index: 10; border-bottom: 1px solid rgba(223, 228, 223, 0.8); background: rgba(255, 255, 255, 0.95); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.brand-mark { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; background: var(--green); }
.brand-mark svg { width: 22px; fill: white; }
.nav-links { display: flex; gap: 30px; margin-left: 28px; color: #59615b; font-size: 14px; }
.nav-links a:hover, .footer-links a:hover { color: var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.button { min-height: 43px; border: 0; border-radius: 7px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 650; font-size: 14px; cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, .modal-close:focus-visible, .modal-switch button:focus-visible, a:focus-visible { outline: 3px solid rgba(77, 107, 87, 0.28); outline-offset: 3px; }
.button-primary { color: white; background: var(--green); }
.button-primary:hover { background: var(--green-dark); }
.button-secondary { color: var(--ink); border: 1px solid #cfd5d0; background: white; }
.button-secondary:hover { border-color: #aeb8b0; background: var(--soft); }
.button-quiet { padding-inline: 12px; color: #39423b; background: transparent; }
.button-quiet:hover { background: var(--soft); }
.button-small { min-height: 39px; padding-inline: 16px; }
.button-large { min-height: 50px; padding-inline: 25px; }
.button-full { width: 100%; margin-top: 4px; }

.hero { overflow: hidden; padding: 96px 0 105px; background: linear-gradient(180deg, #fafbfa 0%, #f5f7f5 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(520px, 1.08fr); align-items: center; gap: 72px; }
.eyebrow { margin: 0 0 13px; color: var(--green); font-size: 13px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 600px; margin-bottom: 22px; font-size: clamp(42px, 5vw, 61px); line-height: 1.08; letter-spacing: -.045em; }
h2 { margin-bottom: 15px; font-size: clamp(30px, 3.5vw, 40px); line-height: 1.18; letter-spacing: -.035em; }
h3 { margin-bottom: 8px; font-size: 18px; line-height: 1.35; }
.hero-text { max-width: 570px; margin-bottom: 32px; color: var(--muted); font-size: 18px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 16px 0 0; color: #7a837c; font-size: 13px; }

.storage-preview { position: relative; border: 1px solid #d9ded9; border-radius: 13px; background: white; box-shadow: var(--shadow); transform: rotate(.4deg); }
.storage-preview::before { content: ""; position: absolute; z-index: -1; inset: 25px -35px -35px 30px; border-radius: 40%; background: rgba(77, 107, 87, .08); filter: blur(5px); }
.preview-topbar { height: 48px; padding: 0 16px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid #e7eae7; }
.preview-dot { width: 7px; height: 7px; border-radius: 50%; background: #d6dbd7; }
.preview-title { margin: 0 auto; padding-right: 34px; color: #6d746e; font-size: 10px; font-weight: 600; }
.preview-body { min-height: 379px; display: grid; grid-template-columns: 105px 1fr; }
.preview-sidebar { padding: 31px 18px; border-right: 1px solid #edf0ed; background: #fafbfa; }
.sidebar-pill { width: 65px; height: 7px; display: block; margin-bottom: 17px; border-radius: 4px; background: #e1e5e1; }
.sidebar-pill.active { background: #a9baad; }
.sidebar-pill.short { width: 42px; }
.preview-content { padding: 27px 26px 22px; }
.preview-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-size: 13px; font-weight: 700; }
.preview-button { width: 64px; height: 19px; border-radius: 4px; background: var(--green); }
.folder-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.folder-card { min-width: 0; padding: 12px; display: grid; grid-template-columns: 20px 1fr; border: 1px solid #e4e8e4; border-radius: 7px; }
.folder-card strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; }
.folder-card small { grid-column: 2; color: #8a918b; font-size: 7px; }
.folder-icon { width: 14px; height: 11px; margin-top: 2px; border-radius: 2px; background: #9aaf9f; }
.folder-icon.blue { background: #94aabb; }
.folder-icon.tan { background: #c2ad91; }
.file-list { margin-top: 22px; border-top: 1px solid #ecefec; }
.file-row { min-height: 53px; display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px; border-bottom: 1px solid #ecefec; color: #89908a; font-size: 7px; }
.file-row strong, .file-row small { display: block; }
.file-row strong { color: #343b35; font-size: 9px; }
.file-type { width: 27px; height: 31px; display: grid; place-items: center; border-radius: 3px; color: #a75c5c; background: #f4e8e8; font-size: 6px; font-weight: 800; }
.file-type.sheet { color: #548063; background: #e8f0ea; }
.file-type.image { color: #5e718e; background: #e9edf3; }
.storage-meter { margin-top: 19px; color: #6f7771; font-size: 7px; }
.storage-meter > div { display: flex; justify-content: space-between; margin-bottom: 7px; }
.meter-track { height: 4px; display: block; overflow: hidden; border-radius: 4px; background: #e8ece8; }
.meter-track span { width: 42%; height: 100%; display: block; background: var(--green); }

.section { padding: 96px 0; }
.section-heading { max-width: 620px; margin: 0 auto 50px; text-align: center; }
.section-heading > p:last-child, .plan-panel p { color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { padding: 32px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.feature-card p { margin: 0; color: var(--muted); font-size: 15px; }
.feature-icon { width: 42px; height: 42px; margin-bottom: 22px; display: grid; place-items: center; border-radius: 8px; background: var(--green-soft); }
.feature-icon svg { width: 22px; fill: none; stroke: var(--green); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.plans { padding-top: 20px; }
.plan-panel { padding: 56px 64px; display: flex; align-items: center; justify-content: space-between; gap: 40px; border: 1px solid #dce4de; border-radius: 14px; background: #f1f5f2; }
.plan-panel > div { max-width: 650px; }
.plan-panel h2 { font-size: 34px; }
.plan-panel p:last-child { margin-bottom: 0; }

.site-footer { padding: 31px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; gap: 30px; color: #737b75; font-size: 13px; }
.footer-inner .brand { color: var(--ink); font-size: 14px; }
.footer-inner .brand-mark { width: 27px; height: 27px; }
.footer-inner .brand-mark svg { width: 19px; }
.footer-inner p { margin: 0 auto; }
.footer-links { display: flex; gap: 22px; }

.modal { width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; overflow: auto; border: 0; border-radius: 13px; background: transparent; box-shadow: 0 28px 80px rgba(18, 28, 21, .23); }
.modal::backdrop { background: rgba(22, 29, 24, .52); backdrop-filter: blur(2px); }
.modal-panel { position: relative; padding: 38px 42px 34px; background: white; }
.modal-close { position: absolute; top: 12px; right: 14px; width: 38px; height: 38px; border: 0; border-radius: 50%; color: #747c76; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; }
.modal-close:hover { color: var(--ink); background: var(--soft); }
.modal-brand { margin-bottom: 19px; }
.modal h2 { margin-bottom: 7px; font-size: 28px; }
.modal-intro { margin-bottom: 25px; color: var(--muted); font-size: 14px; }
.auth-form { display: flex; flex-direction: column; }
.auth-form label { margin: 0 0 6px; color: #394139; font-size: 13px; font-weight: 650; }
.auth-form input { width: 100%; height: 46px; margin-bottom: 16px; padding: 0 13px; border: 1px solid #cfd6d0; border-radius: 7px; color: var(--ink); background: white; font-size: 15px; outline: none; }
.auth-form input::placeholder { color: #9da49f; }
.auth-form input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(77, 107, 87, .12); }
.form-error { min-height: 22px; margin: -2px 0 10px; color: var(--error); font-size: 13px; }
.modal-switch { margin: 23px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
.modal-switch button { padding: 0; border: 0; color: var(--green); background: transparent; font-weight: 700; cursor: pointer; }
.spinner { width: 15px; height: 15px; display: none; border: 2px solid rgba(255, 255, 255, .5); border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }
.is-loading .spinner { display: block; }
.is-loading .button-label { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { padding: 72px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy { max-width: 690px; }
  .storage-preview { width: min(620px, 100%); margin: 0 auto; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { display: grid; grid-template-columns: 50px 1fr; column-gap: 18px; }
  .feature-card .feature-icon { grid-row: span 2; }
  .plan-panel { padding: 45px; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 32px, 1120px); }
  .header-inner { min-height: 68px; }
  .header-actions .button-quiet { display: none; }
  .brand { font-size: 15px; }
  .hero { padding: 59px 0 64px; }
  h1 { font-size: 40px; }
  .hero-text { font-size: 16px; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .preview-body { min-height: 330px; grid-template-columns: 1fr; }
  .preview-sidebar { display: none; }
  .preview-content { padding: 22px 18px 18px; }
  .folder-card { padding: 9px; display: block; }
  .folder-card strong, .folder-card small { display: block; }
  .folder-icon { margin-bottom: 5px; }
  .section { padding: 70px 0; }
  .section-heading { margin-bottom: 36px; }
  .feature-card { padding: 24px; }
  .plans { padding-top: 0; }
  .plan-panel { padding: 34px 25px; display: block; }
  .plan-panel h2 { font-size: 29px; }
  .plan-panel .button { width: 100%; margin-top: 12px; }
  .footer-inner { flex-wrap: wrap; justify-content: space-between; }
  .footer-inner p { width: 100%; order: 3; }
  .modal-panel { padding: 35px 24px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
